if none are set build static

This commit is contained in:
Konstantinos Margaritis
2023-11-19 19:18:23 +02:00
committed by Konstantinos Margaritis
parent 80b8486bf7
commit 2a902a77e4

View File

@@ -94,8 +94,9 @@ if (BUILD_STATIC_LIBS)
message(STATUS "Building static libraries") message(STATUS "Building static libraries")
endif() endif()
if (NOT BUILD_SHARED_LIBS) if (NOT BUILD_STATIC_LIBS AND NOT BUILD_SHARED_LIBS)
# build static 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) set(BUILD_STATIC_LIBS ON)
endif () endif ()