[CMake] canonical way to distinguish CMake builds?
Brandon J. Van Every
bvanevery at gmail.com
Mon Jul 3 17:52:19 EDT 2006
I have put ADD_DEFINITIONS(-DCMAKE_BUILD) in CMakeLists.txt and
statements such as #if !defined(CMAKE_BUILD) in my .h files. Is there a
canonical definition for this? I didn't see any canonical flag being
passed to the C compiler, so I'm guessing there isn't one, but I have a
vague memory of reading about such a thing in the archives. Couldn't
find any reference to it though.
Cheers,
Brandon Van Every
More information about the CMake
mailing list