[CMake] set_target_properties with Xcode

Ben Ratzlaff cmake at daishiva.com
Thu Oct 16 18:51:22 EDT 2008


I cannot seem to get the following to work when using the Xcode generator
(Unix Makefile and Visual Studio ones work fine)

SET_TARGET_PROPERTIES (${PLUGIN_NAME} PROPERTIES
    LINK_FLAGS "-L${LIBRARY_OUTPUT_PATH}/.."
    LINK_FLAGS_DEBUG "XXXXXXXXXXXXXXXXX"
    LINK_FLAGS_RELEASE "YYYYYYYYYYYYYYYYYY"
    PREFIX "../"
)

the X's and Y's never appear on the build line when used with:
xcodebuild -project <project name>.xcodeproj/ -configuration Debug

cmake --version is:
cmake version 2.6-patch 2

Had the same problem in the 2.4 version we were using up to now. Is there
any other way to specify additional linker flags that are separated between
debug and release?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081016/34555138/attachment-0001.htm>


More information about the CMake mailing list