]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
if none are set build static
authorKonstantinos Margaritis <markos@freevec.org>
Sun, 19 Nov 2023 17:18:23 +0000 (19:18 +0200)
committerKonstantinos Margaritis <markos@freevec.org>
Sun, 19 Nov 2023 17:18:23 +0000 (19:18 +0200)
CMakeLists.txt

index 05e0cea7385de904c9c3586da3298ac49d307cef..024acbaab484abdd5ec27e171dd1936ff5525e2d 100644 (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 ()