I try cmake 2.6, 2.8 for microsoft visual studio 2005,2008.
creating library:

add_library(my_lib STATIC ${CPP_FILES})

I try send some linker options by set

set_target_properties(my_lib  PROPERTIES LINK_FLAGS "some_opt")

or

set_target_properties(my_lib  PROPERTIES LINK_FLAGS_<my target> "some_opt")


it's ignored, as i understand from source code of vc7generator - it
ignored extended and unknown option for static library but it works
for exe and shared.

How i can send my option to linker for static library?

The great solution will be some CMAKE_STATIC_LINKER_FLAGS as for
CMAKE_EXE_LINKER_FLAGS and CMAKE_SHARED_LINKER_FLAGS.
It's difficult  set same  properties for all project.
_______________________________________________
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

Reply via email to