Fixed CMake error when DATADIR equal "" (is DEFINED, but empty).
Merge pull request #480 from winterheart/default-data-dir

Fixed CMake error when DATADIR equal "" (is DEFINED, but empty).