Eric Noulard skrev:
2007/5/20, Kenny Erleben <[EMAIL PROTECTED]>:

iii) How to make several executables share the same compiler- and
linker- flags?

you may define a CMake variable
SET(MYCFLAGS "jkdlfjlj")
SET(MYLDFLAGS "ljjl")

then you may use
SET_TARGET_PROPERTIES(target1 target2
                                          PROPERTIES
                                          COMPILE_FLAGS ${MYCFLAGS}
                                          LINK_FLAGS ${MYLDFLAGS})
How can I use different flags for debug and optimized versions?

/Kenny

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to