Skip to content

Commit

Permalink
Try to remove soname without modifying cmake itself
Browse files Browse the repository at this point in the history
  • Loading branch information
malaterre committed Apr 21, 2012
1 parent 0f3e6db commit af8e363
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMake/test1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# http://cmake.org/Bug/view.php?id=13155#c29270
string(REPLACE "<CMAKE_SHARED_LIBRARY_SONAME_C_FLAG><TARGET_SONAME>" "" CMAKE_C_CREATE_SHARED_MODULE "${CMAKE_C_CREATE_SHARED_MODULE}")
cmake_minimum_required(VERSION 2.8)
project(test1 C)

add_library(lib1 SHARED foo.c)
add_library(lib2 MODULE foo.c)

install(TARGETS lib1 lib2
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib)

0 comments on commit af8e363

Please sign in to comment.