From aecd920b571d4f57d22e74d5beca8b52466258be Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Sun, 19 Nov 2023 19:18:23 +0200 Subject: [PATCH] if none are set build static --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 05e0cea7..024acbaa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,8 +94,9 @@ if (BUILD_STATIC_LIBS) message(STATUS "Building static libraries") endif() -if (NOT BUILD_SHARED_LIBS) - # build static libs +if (NOT BUILD_STATIC_LIBS AND NOT BUILD_SHARED_LIBS) + # if none are set build static libs + message(STATUS "Neither shared nor static libraries were requested, building static libraries") set(BUILD_STATIC_LIBS ON) endif ()