Skip to content

Commit 1a202d9

Browse files
committed
CMake: option BUILD_SHARED_LIBS to be able to create static library
1 parent a486793 commit 1a202d9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ set (PACKAGE_VERSION ${SIGCXX_MAJOR_VERSION}.${SIGCXX_MINOR_VERSION}.${SIGCXX_MI
2525
set (LIBSIGCPP_SOVERSION 0)
2626

2727
option (SIGCXX_DISABLE_DEPRECATED "Disable deprecated" OFF)
28+
option (BUILD_SHARED_LIBS "Build libsigc++ as a shared library" ON)
2829

2930
project (sigc++)
3031

sigc++/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set (SOURCE_FILES
2323

2424
set (SIGCPP_LIB_NAME sigc-${SIGCXX_API_VERSION})
2525

26-
add_library(${SIGCPP_LIB_NAME} SHARED ${SOURCE_FILES})
26+
add_library(${SIGCPP_LIB_NAME} ${SOURCE_FILES})
2727

2828
set_property (TARGET ${SIGCPP_LIB_NAME} PROPERTY VERSION ${PACKAGE_VERSION})
2929
set_property(TARGET ${SIGCPP_LIB_NAME} PROPERTY SOVERSION ${LIBSIGCPP_SOVERSION})

0 commit comments

Comments
 (0)