[CMake] add_target_properties( tgt COMPILE_FLAGS_${CONF} "abc" )

Miller Henry MillerHenry at JohnDeere.com
Tue Jun 25 11:40:50 EDT 2013


TARGET_LINK_LIBRARIES(${tgt} stdc++)

Should do the trick

-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of "Sören Textor [Ditec-GmbH]"
Sent: Tuesday, June 25, 2013 10:15 AM
To: cmake at cmake.org
Subject: [CMake] add_target_properties( tgt COMPILE_FLAGS_${CONF} "abc" )

Hello
Is it meanwhile possible to add configuration specfic compiler flags analouge to link flags?

add_target_properties( ${tgt} COMPILE_FLAGS_${CONF} "abc" )

add_target_properties( ${tgt} LINK_FLAGS_${CONF} "abc" )

Best regards
SirAnn


--

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list