[CMake] CMAKE_BUILD_TYPE case sensitivity

Hal Canary hal at cs.unc.edu
Thu Jun 27 13:03:12 EDT 2013


On 06/24/2013 11:43 AM, Anil Gunturu wrote:
> Is the CMAKE_BUILD_TYPE case sensitive. I have seen references to both
> "Debug" and "DEBUG" in the mailing lists.
> Thanks,
> -Anil

This is easy to test with this code:

	#include <iostream>
	int main(int, char **) {
	#ifdef NDEBUG
	  std::cout << "Release\n";
	#else
	  std::cout << "Debug\n";
	#endif
	}

I see that this CMake variable is not case-sensitive at it and defaults 
to DEBUG.


More information about the CMake mailing list