Fix generation of the config-file
author Andreas Pakulat
()
committer Andreas Pakulat
()
commit 34dc37ec3b37c4895f5164235812a1a367b779c7
tree fb847ca55ec2bbeba70c32da7417e3cf156e26cf
parent daa89efb9c76093a9b62623c04e7b486c94db1eb
Fix generation of the config-file

With the #define x @x@ the generated config file would still always have
a #define x in it, even if @x@ is 0. This results in both ext-hashmap and
unordered-map to be enabled even if only the latter was found and hence
results in compile-errors.

Instead if one wants to base a define in a configure_file-generated header
on the value of a cmake variable #cmakedefine should be used.

This fixes building of kdevplatform on systems where unordered_map produces
a warning without the -std=c++0x compiler flag which in turn makes
check_include_file_cxx fail to find the header.
config-kdevplatform.h.cmake