diff Resources/CMake/DatabasesFrameworkConfiguration.cmake @ 409:e25f4500b531

fix linking against system-wide Orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 15 Apr 2023 14:55:21 +0200
parents 3d6886f3e5b3
children ecd0b719cff5
line wrap: on
line diff
--- a/Resources/CMake/DatabasesFrameworkConfiguration.cmake	Sat Apr 15 13:58:16 2023 +0200
+++ b/Resources/CMake/DatabasesFrameworkConfiguration.cmake	Sat Apr 15 14:55:21 2023 +0200
@@ -68,11 +68,21 @@
   if (ENABLE_SQLITE_BACKEND)
     add_definitions(-DORTHANC_ENABLE_SQLITE=1)
   endif()
-  
+
+  # These parameters should *NOT* be modified by the user: System-wide
+  # installations expect only dynamic linking
   set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
+  set(USE_SYSTEM_OPENSSL ON CACHE BOOL "Use the system version of OpenSSL")
+  set(USE_SYSTEM_PROTOBUF ON CACHE BOOL "Use the system version of Google Protocol Buffers")
+
   set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)")
   mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE)
+
+  set(ENABLE_OPENSSL_ENGINES ON CACHE INTERNAL "")
+
   include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/GoogleTestConfiguration.cmake)
+  include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/OpenSslConfiguration.cmake)
+  include(${CMAKE_CURRENT_LIST_DIR}/../Orthanc/CMake/ProtobufConfiguration.cmake)
   
 else()
   # Those modules of the Orthanc framework are not needed when dealing