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) and then that overwrites the dynamic link library lib? Thanks. Tk -- 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
