2012/5/18 Totte Karlsson <[email protected]>: >> >> set(LIBSRC blah.c bouh.c) >> >> add_library(MyLib SHARED ${LIBSRC}) >> >> add_library(MyLib-static STATIC ${LIBSRC}) >> set_target_properties(MyLibStatic PROPERTIES OUTPUT_NAME MyLib) >> >> should work > > > That works great. > > Not sure what the line >> set_target_properties(MyLibStatic PROPERTIES OUTPUT_NAME MyLib) > Is doing? > > Did you mean > set_target_properties(MyLib-static PROPERTIES OUTPUT_NAME MyLib)
yes right. missing "-" is a typo. > and then that overwrites the dynamic link library lib? shouldn't be overwritten because the extension (.a) should not be the same as for dynamic (.dll / .so ) -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- 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
