[Cmake] Using SET_TARGET_PROPERTIES LINK_FLAGS

Andy Cedilnik andy.cedilnik at kitware.com
Wed, 25 Feb 2004 13:27:58 -0500


Hi Ian,

I just tried and it works fine. The question is are you doing it in the
same CMakeLists.txt as you define target? SET_TARGET_PROPERTIES is not
inherited, so it only works in the same directory.

			Andy

On Wed, 2004-02-25 at 11:37, Ian Scott wrote:
> Follow Fred W's and my recent education about the superiority of
> SET_SOURCE_FILE_PROPERTIES(...) over
> SET(CMAKE_CXX_FLAGS ...)
> I thought I would try and solve a problem I've had trying to
> SET ( CMAKE_MODULE_LINKER_FLAGS ...)
> 
> I am now trying to use
> SET_TARGET_PROPERTIES ( vcl PROPERTIES LINK_FLAGS "/WARN:0")
> 
> However, when I try using SET_TARGET_PROPERTIES, no "/WARN:0" gets added to
> the dsp file.
> 
> I've tried moving it before, and after the ADD_LIBRARY(vcl ...) command. I
> have tried it on a toy example. No joy.
> 
> I'm using CMake 1.8.3 and the MSVC6 generator.
> 
> Am I using SET_TARGET_PROPERTIES correctly?