diff options
Diffstat (limited to 'DefineOptions.cmake')
-rw-r--r-- | DefineOptions.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/DefineOptions.cmake b/DefineOptions.cmake index eb60b097..3b9e4279 100644 --- a/DefineOptions.cmake +++ b/DefineOptions.cmake @@ -29,8 +29,12 @@ if(WITH_BENCHMARKS) set(UNIT_TESTING ON) endif(WITH_BENCHMARKS) +if (WITH_STATIC_LIB) + set(BUILD_STATIC_LIB ON) +endif (WITH_STATIC_LIB) + if (UNIT_TESTING) - set(WITH_STATIC_LIB ON) + set(BUILD_STATIC_LIB ON) endif (UNIT_TESTING) if (WITH_NACL) |