On Tue, Oct 16, 2012 at 3:53 PM, Eric Clark <ecl...@ara.com> wrote: > Hello, > > > > I am currently having trouble with set_target_properties(…). I am trying to > call it twice to set two different values for the same property. The first > call I make looks like this: > > > > set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS > "/ENTRY:mainCRTStartup") > > > > Then, I call it again with the following signature: > > > > set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS > "/INCREMENTAL:NO") > > > > When I do this, the second call seems to override the previous call. Can > anyone tell me if this is intended or a bug? And, if so, does anyone know of > a work-around for this? > > > > Thank You, > > Eric > > > > To be fond of something is better than merely to know it, and to find joy in > it is better than merely to be fond of it. -- The Analects, Confucius > > > > > -- > > 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
It's intended, and can't be changed for backwards compatibility reasons. Instead, use the set_property command with the APPEND keyword. http://cmake.org/cmake/help/v2.8.9/cmake.html#command:set_property HTH, David -- 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