From 281cc2ca6fccf1a8154004339911f3fd431d5258 Mon Sep 17 00:00:00 2001 From: Holden Date: Sat, 12 Oct 2024 19:31:21 -0400 Subject: [PATCH] CMake: Build exiv2 as static --- CMakeLists.txt | 2 +- src/Comms/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 "")