mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 11:52:40 +01:00
cmake: only install shared libraries
This commit is contained in:
parent
7aaa8e5527
commit
7d18898e2c
@ -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(FILESYSTEM_LIBRARY "BOOST" CACHE STRING "Which filesystem library to use")
|
||||||
set_property(CACHE FILESYSTEM_LIBRARY PROPERTY STRINGS "CXX17" "CXXTS" "BOOST")
|
set_property(CACHE FILESYSTEM_LIBRARY PROPERTY STRINGS "CXX17" "CXXTS" "BOOST")
|
||||||
|
|
||||||
option(INSTALL_LIBS "Install rwengine libraries")
|
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: Debug Release")
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: Debug Release")
|
||||||
endif()
|
endif()
|
||||||
|
@ -160,7 +160,7 @@ target_include_directories(rwengine
|
|||||||
|
|
||||||
openrw_target_apply_options(TARGET rwengine)
|
openrw_target_apply_options(TARGET rwengine)
|
||||||
|
|
||||||
if(INSTALL_LIBS)
|
if(BUILD_SHARED_LIBS)
|
||||||
install(TARGETS rwengine
|
install(TARGETS rwengine
|
||||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
|
@ -65,7 +65,7 @@ target_link_libraries(rwlib
|
|||||||
|
|
||||||
openrw_target_apply_options(TARGET rwlib)
|
openrw_target_apply_options(TARGET rwlib)
|
||||||
|
|
||||||
if(INSTALL_LIBS)
|
if(BUILD_SHARED_LIBS)
|
||||||
install(TARGETS rwlib
|
install(TARGETS rwlib
|
||||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
|
Loading…
Reference in New Issue
Block a user