[CMake] tool flags

Thomas Sharpless tksharpless at gmail.com
Wed Nov 7 09:09:10 EST 2007


Another stupid newbie question --
How does one set/change the compiler and linker flags variables?
Putting things like
  STRING(REPLACE /MD /MT CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
or even
  SET( CMAKE_EXE_LINKER_FLAGS
       ${CMAKE_EXE_LINKER_FLAGS} /noDefaultLib:MSVCRT /noDefaultLib:MSVCRTd
       CACHE STRING "for MSVC"
     )
in the root cmakelists.txt has no effect.
Of course the answer must be obvious, but I can't find it.

Thanks. Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071107/37e3ddb1/attachment.htm


More information about the CMake mailing list