diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2022-05-10 16:45:05 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2022-05-10 16:45:05 -0500 |
| commit | 7bdda14b8d1e6c33152c67bdca7ffe34bc718f1d (patch) | |
| tree | 5d263fbb41db9be3de2472018db1d8f2dc8f6e40 | |
| parent | 5e46ab53e7edc98b17869e9b2d14714e21016b34 (diff) | |
| parent | 9c42b728ba23193e75d24336504018e9057cd7c9 (diff) | |
| download | monzero-core-7bdda14b8d1e6c33152c67bdca7ffe34bc718f1d.tar.gz monzero-core-7bdda14b8d1e6c33152c67bdca7ffe34bc718f1d.tar.xz monzero-core-7bdda14b8d1e6c33152c67bdca7ffe34bc718f1d.zip | |
Merge pull request #8235
9c42b72 CMake: Add missing BUILD_SHARED_LIBS option (mj-xmr)
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a0f11608c..3abd0722a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") |
