[Cmake] Using SET_TARGET_PROPERTIES LINK_FLAGS

Ian Scott ian.m.scott at stud.man.ac.uk
Wed, 25 Feb 2004 16:37:50 -0000


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?

Thanks,
Ian.