diff options
author | Felix Geyer <fgeyer@debian.org> | 2015-08-20 12:13:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-08-20 14:45:09 (GMT) |
commit | f799ffb5cb895855ac2aba54765622b81db5be38 (patch) | |
tree | 211d48c7fa168fe7945939de227a396302e65dce /Tests/Plugin/CMakeLists.txt | |
parent | 899458ab20876aeea915a59e9bfb459d92d264de (diff) | |
download | CMake-f799ffb5cb895855ac2aba54765622b81db5be38.zip CMake-f799ffb5cb895855ac2aba54765622b81db5be38.tar.gz CMake-f799ffb5cb895855ac2aba54765622b81db5be38.tar.bz2 |
Do not set SONAME for MODULE library targets (#15705)
The SONAME field is only useful for shared libraries that application
link against.
Diffstat (limited to 'Tests/Plugin/CMakeLists.txt')
-rw-r--r-- | Tests/Plugin/CMakeLists.txt | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Tests/Plugin/CMakeLists.txt b/Tests/Plugin/CMakeLists.txt index ecdece8..2b7bac1 100644 --- a/Tests/Plugin/CMakeLists.txt +++ b/Tests/Plugin/CMakeLists.txt @@ -52,13 +52,8 @@ target_link_libraries(example_mod_1 example_exe) if(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG AND "${CMAKE_C_CREATE_SHARED_MODULE}" MATCHES "SONAME_FLAG") - # Add a second plugin that should not have any soname. - add_library(example_mod_2 MODULE src/example_mod_1.c) - target_link_libraries(example_mod_2 example_exe) - set_property(TARGET example_mod_2 PROPERTY NO_SONAME 1) - # Verify that targets export with proper IMPORTED SONAME properties. - export(TARGETS example_mod_1 example_mod_2 NAMESPACE exp_ + export(TARGETS example_mod_1 NAMESPACE exp_ FILE ${CMAKE_CURRENT_BINARY_DIR}/mods.cmake) include(ExternalProject) @@ -68,7 +63,7 @@ if(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG AND DOWNLOAD_COMMAND "" INSTALL_COMMAND "" ) - add_dependencies(PluginTest example_mod_1 example_mod_2) + add_dependencies(PluginTest example_mod_1) endif() # TODO: |