[Cmake] File and compiler specific flags?
William A. Hoffman
bill.hoffman at kitware.com
Sun Aug 19 17:48:40 EDT 2001
I am using the following in Insight:
>At 17/08/2001 17:57, Bill Hoffman wrote:
>>You guessed it:
>>
>>IF(CMAKE_COMPILER_IS_GNUCXX)
>> SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth-50")
>>ENDIF(CMAKE_COMPILER_IS_GNUCXX)
>
>I's working, but there is a slight problem anyway : the new
>CMAKE_CXX_FLAGS value does not make its way to the cache, although the
>original value has the following syntax (here, for Windows) :
It does work, it does not show up in the cache, but is in the makefile and
is inherited so it makes
it into the entire build below the the CMakeLists.txt the has the above
command.
-Bill
More information about the CMake
mailing list