if none are set build static

This commit is contained in:
Konstantinos Margaritis 2023-11-19 19:18:23 +02:00
parent d5cd29b333
commit aecd920b57

View File

@ -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 ()