From 22264569de1a894991b8876caf420b09bab1aa46 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 19 Nov 2019 15:57:27 +0100 Subject: cmake: Add options for BUILD_SHARED_LIBS --- DefineOptions.cmake | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/DefineOptions.cmake b/DefineOptions.cmake index d281128..986fe47 100644 --- a/DefineOptions.cmake +++ b/DefineOptions.cmake @@ -1,11 +1,5 @@ -option(WITH_STATIC_LIB "Build with a static library" OFF) +option(BUILD_SHARED_LIBS "Build shared libraries" ON) option(WITH_CMOCKERY_SUPPORT "Install a cmockery header" OFF) option(WITH_EXAMPLES "Build examples" ON) option(UNIT_TESTING "Build with unit testing" OFF) option(PICKY_DEVELOPER "Build with picky developer flags" OFF) - -if (WITH_STATIC_LIB) - set(BUILD_SHARED_LIBS OFF) -else (WITH_STATIC_LIB) - set(BUILD_SHARED_LIBS ON) -endif (WITH_STATIC_LIB) -- cgit v1.2.3