[CMake] setting defines using CMAKE_CXX_FLAGS

Brandon Van Every bvanevery at gmail.com
Mon Nov 26 15:38:48 EST 2007


On Nov 26, 2007 2:52 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Try
>
> SET( CMAKE_CXX_FLAGS "-D DEF1 -D DEF2 -D DEF3 -D DEF4")

This is also a FAQ entry now.
http://www.cmake.org/Wiki/CMake_FAQ#Why_do_I_have_unwanted_semicolons_.3B_in_my_compiler_flags.3F
I added it after it came up last week.


Cheers,
Brandon Van Every


More information about the CMake mailing list