projects
/
platform
/
upstream
/
cmocka.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
packaging: Add packaging for generating RPM package
[platform/upstream/cmocka.git]
/
DefineOptions.cmake
diff --git
a/DefineOptions.cmake
b/DefineOptions.cmake
index
d34d2a3
..
7564a22
100644
(file)
--- a/
DefineOptions.cmake
+++ b/
DefineOptions.cmake
@@
-1,3
+1,7
@@
option(WITH_STATIC_LIB "Build with a static library" OFF)
option(WITH_CMOCKERY_SUPPORT "Install a cmockery header" OFF)
option(UNIT_TESTING "Build with unit testing" OFF)
+
+if (UNIT_TESTING)
+ set(WITH_STATIC_LIB ON)
+endif()