summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-11-19 15:57:27 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-11-19 15:57:27 +0100
commit22264569de1a894991b8876caf420b09bab1aa46 (patch)
tree2c2cb0afd53ceca142bd2f433faaefd984985392
parente4c51ce9a4792d7d301d49e4e962036bfaa7f75e (diff)
downloadcmocka-22264569de1a894991b8876caf420b09bab1aa46.tar.gz
cmocka-22264569de1a894991b8876caf420b09bab1aa46.tar.xz
cmocka-22264569de1a894991b8876caf420b09bab1aa46.zip
cmake: Add options for BUILD_SHARED_LIBS
-rw-r--r--DefineOptions.cmake8
1 files changed, 1 insertions, 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)