diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2018-11-08 11:10:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-08 11:10:16 -0800 |
commit | 223431aaa5a95d48a6aff20134ed4e2481de3cf3 (patch) | |
tree | 7f951480dde3b3bd05d862a7a32b1d32a7d88a20 /src/main | |
parent | 7b0efcd75f471b4252c65b8d18aa4c3266649626 (diff) |
cmake: Add option to explicitely enable/disable static binaries. (#2698)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt index be9575f5d..5fb555d70 100644 --- a/src/main/CMakeLists.txt +++ b/src/main/CMakeLists.txt @@ -56,7 +56,7 @@ endif() # use the static system libraries. # https://cmake.org/cmake/help/v3.0/prop_tgt/LINK_SEARCH_START_STATIC.html # https://cmake.org/cmake/help/v3.0/prop_tgt/LINK_SEARCH_END_STATIC.html -if(NOT ENABLE_SHARED) +if(ENABLE_STATIC_BINARY) set_target_properties(cvc4-bin PROPERTIES LINK_FLAGS -static) set_target_properties(cvc4-bin PROPERTIES LINK_SEARCH_START_STATIC ON) set_target_properties(cvc4-bin PROPERTIES LINK_SEARCH_END_STATIC ON) @@ -90,7 +90,7 @@ if(ENABLE_PORTFOLIO) install(TARGETS pcvc4-bin DESTINATION bin) endif() - if(NOT ENABLE_SHARED) + if(ENABLE_STATIC_BINARY) set_target_properties(pcvc4-bin PROPERTIES LINK_FLAGS -static) set_target_properties(pcvc4-bin PROPERTIES LINK_SEARCH_START_STATIC ON) set_target_properties(pcvc4-bin PROPERTIES LINK_SEARCH_END_STATIC ON) |