changeset 296:024ec14b9121

integration OrthancMySQL-4.1->mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Jun 2021 10:33:32 +0200
parents d5f1c9498a84 (current diff) e91a17e3bdb0 (diff)
children 86265ef5f3e3
files MySQL/CMakeLists.txt
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MySQL/CMakeLists.txt	Wed Jun 30 09:15:51 2021 +0200
+++ b/MySQL/CMakeLists.txt	Wed Jun 30 10:33:32 2021 +0200
@@ -132,3 +132,13 @@
 set_target_properties(UnitTests PROPERTIES
   COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0
   )
+
+if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
+  # Explicitly adding "-lstdc++ -lm" during linking for LSB had to be
+  # introduced on the BuildBot server for LSB Release builds between
+  # "OrthancMySQL-4.0" and "OrthancMySQL-4.1", for unclear
+  # reasons. Without this option, many symbols are left undefined
+  # while linking "UnitTests" in release mode. Similar to:
+  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14001
+  target_link_libraries(UnitTests stdc++ m)
+endif()