aboutsummaryrefslogtreecommitdiff
path: root/DefineOptions.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-27 09:19:21 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-09-27 13:32:36 +0200
commit12c5ea19c33363454365094e72e58f8b7bccce64 (patch)
treed9206410d314c605e3496d92c4a04046cc9a50b1 /DefineOptions.cmake
parent33c3e09e8d427e769220c7dc07f371d6ab459f98 (diff)
downloadcmocka-12c5ea19c33363454365094e72e58f8b7bccce64.tar.gz
cmocka-12c5ea19c33363454365094e72e58f8b7bccce64.tar.xz
cmocka-12c5ea19c33363454365094e72e58f8b7bccce64.zip
cmake: Only install static lib if requested
Diffstat (limited to 'DefineOptions.cmake')
-rw-r--r--DefineOptions.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/DefineOptions.cmake b/DefineOptions.cmake
index bca0848..5bc1ef3 100644
--- a/DefineOptions.cmake
+++ b/DefineOptions.cmake
@@ -3,6 +3,10 @@ option(WITH_CMOCKERY_SUPPORT "Install a cmockery header" OFF)
option(UNIT_TESTING "Build with unit testing" OFF)
option(PICKY_DEVELOPER "Build with picky developer flags" OFF)
+if (WITH_STATIC_LIB)
+ set(BUILD_STATIC_LIB ON)
+endif (WITH_STATIC_LIB)
+
if (UNIT_TESTING)
- set(WITH_STATIC_LIB ON)
-endif()
+ set(BUILD_STATIC_LIB ON)
+endif (UNIT_TESTING)