Skip to content

Commit

Permalink
Merge pull request #7 from muflihun/develop
Browse files Browse the repository at this point in the history
build static
  • Loading branch information
abumq authored Jan 9, 2018
2 parents 7e988c6 + cc5f4fd commit ec84272
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 ec84272

Please sign in to comment.