Skip to content

Commit

Permalink
build static
Browse files Browse the repository at this point in the history
  • Loading branch information
abumq committed Jan 9, 2018
1 parent ecb0a3b commit cc5f4fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ set(LICENSEPP_SOURCE_FILES
src/license.cc
)

add_library (licensepp-lib ${LICENSEPP_SOURCE_FILES})
if (BUILD_SHARED_LIBS)
add_library (licensepp-lib SHARED ${LICENSEPP_SOURCE_FILES})
else()
add_library (licensepp-lib STATIC ${LICENSEPP_SOURCE_FILES})
endif()

set_target_properties (licensepp-lib PROPERTIES
VERSION ${LICENSEPP_SOVERSION}
Expand Down

0 comments on commit cc5f4fd

Please sign in to comment.