[CMake] CMAKE_BUILD_TYPE

Brandon J. Van Every bvanevery at gmail.com
Thu Jan 25 14:08:43 EST 2007


I added the following notation to the Useful Variables page of the wiki:
http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools

"Note that CMAKE_BUILD_TYPE is not initialized with a readable value at 
configuration time. This is because the user is free to select a build 
type at build time. Use CMAKE_CFG_INTDIR if you need a variable that 
evalulates to the correct buld time directory."

I am wondering if this behavior should be considered a bug.  Even if 
not, it's definitely inconsistent with user expectations.  I'm not sure 
my documentation above is wholly correct, but it's a 1st stab at 
alleviating confusion.


Cheers,
Brandon Van Every



More information about the CMake mailing list