diff --git a/CMakeLists.txt b/CMakeLists.txt index 720e7b99c63..1bbc0d818ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,7 +108,7 @@ if(CMAKE_CROSSCOMPILING AND ANDROID) set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH) endif() -set(BUILD_SHARED_LIBS OFF) +set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) if(CMAKE_BUILD_TYPE STREQUAL "Release") add_compile_definitions(QGC_INSTALL_RELEASE) diff --git a/src/Comms/CMakeLists.txt b/src/Comms/CMakeLists.txt index e7369f7728f..05da3a7f48a 100644 --- a/src/Comms/CMakeLists.txt +++ b/src/Comms/CMakeLists.txt @@ -90,7 +90,6 @@ endif() option(QGC_ZEROCONF_ENABLED "Enable ZeroConf Compatibility" OFF) if(QGC_ZEROCONF_ENABLED) - set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "") set(BUILD_DOC OFF CACHE INTERNAL "") set(BUILD_EXAMPLES OFF CACHE INTERNAL "") set(BUILD_TESTS OFF CACHE INTERNAL "")