commit bbd6685b
Static link exiv2
Changed files
| M | CMakeLists.txt before |
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c77dbd8..e1fc74e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,8 @@ include(GNUInstallDirs)
find_package(Qt6 REQUIRED COMPONENTS Widgets LinguistTools)
include(FetchContent)
+# Build exiv2lib as a static library so it is linked into the executable
+set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "")
set(EXIV2_BUILD_SAMPLES OFF CACHE INTERNAL "")
set(EXIV2_BUILD_EXIV2_COMMAND OFF CACHE INTERNAL "")
set(EXIV2_BUILD_UNIT_TESTS OFF CACHE INTERNAL "")