1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

cmake: only install shared libraries

This commit is contained in:
Anonymous Maarten 2018-06-04 23:45:08 +02:00
parent 7aaa8e5527
commit 7d18898e2c
3 changed files with 2 additions and 4 deletions

View File

@ -14,8 +14,6 @@ set_property(CACHE FAILED_CHECK_ACTION PROPERTY STRINGS "IGNORE" "ABORT" "BREAKP
set(FILESYSTEM_LIBRARY "BOOST" CACHE STRING "Which filesystem library to use")
set_property(CACHE FILESYSTEM_LIBRARY PROPERTY STRINGS "CXX17" "CXXTS" "BOOST")
option(INSTALL_LIBS "Install rwengine libraries")
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: Debug Release")
endif()

View File

@ -160,7 +160,7 @@ target_include_directories(rwengine
openrw_target_apply_options(TARGET rwengine)
if(INSTALL_LIBS)
if(BUILD_SHARED_LIBS)
install(TARGETS rwengine
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"

View File

@ -65,7 +65,7 @@ target_link_libraries(rwlib
openrw_target_apply_options(TARGET rwlib)
if(INSTALL_LIBS)
if(BUILD_SHARED_LIBS)
install(TARGETS rwlib
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"