mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 09:20:04 -07:00
CMake: Add missing BUILD_SHARED_LIBS option
This commit is contained in:
parent
f49fc9b487
commit
9c42b728ba
@ -472,9 +472,11 @@ endif()
|
||||
option(STATIC "Link libraries statically" ${DEFAULT_STATIC})
|
||||
|
||||
# This is a CMake built-in switch that concerns internal libraries
|
||||
if (NOT DEFINED BUILD_SHARED_LIBS AND NOT STATIC AND CMAKE_BUILD_TYPE_LOWER STREQUAL "debug")
|
||||
set(BUILD_SHARED_LIBS ON)
|
||||
set(BUILD_SHARED_LIBS_DEFAULT OFF)
|
||||
if (NOT STATIC AND CMAKE_BUILD_TYPE_LOWER STREQUAL "debug")
|
||||
set(BUILD_SHARED_LIBS_DEFAULT ON)
|
||||
endif()
|
||||
option(BUILD_SHARED_LIBS "Build internal libraries as shared" ${BUILD_SHARED_LIBS_DEFAULT})
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
message(STATUS "Building internal libraries with position independent code")
|
||||
|
Loading…
Reference in New Issue
Block a user