On 5/31/07, Eric Noulard <[EMAIL PROTECTED]> wrote:
2007/5/31, Mathieu Malaterre <[EMAIL PROTECTED]>:
Did you try to put the property on the target (and not the source file) ?

No

ADD_EXECUTABLE(foo_v1 foo.c)
SET_TARGET_PROPERTIES(foo_v1
                              PROPERTIES COMPILE_FLAGS "-DVERSION1")

ADD_EXECUTABLE(foo_v2 foo.c)
SET_TARGET_PROPERTIES(foo_v2
                              PROPERTIES COMPILE_FLAGS "-DVERSION2")

sweet !!! That works :)

Thanks
-Mathieu
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to