I have an example (attached) that gives a link error because an -rpath-link flag is missing.
If I change the line add_library(static STATIC static.cpp) to add_library(static SHARED static.cpp) then the problem goes away. Also, if I change target_link_libraries(shared2 static) to target_link_libraries(shared2 static sharedb) the problem goes away. I had assumed anything done with target_link_libraries() on static libraries would be pushed up to the shared libraries/executables as needed. But in this case, it doesn't. Is this a bug in CMake? -- Clinton Stimpson Elemental Technologies, Inc Computational Simulation Software, LLC www.csimsoft.com
test-rpath-link.tar.gz
Description: application/compressed-tar
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
