comparison MySQL/CMakeLists.txt @ 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 e91a17e3bdb0
children 2447c290fc73
comparison
equal deleted inserted replaced
293:d5f1c9498a84 296:024ec14b9121
130 130
131 target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES}) 131 target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES})
132 set_target_properties(UnitTests PROPERTIES 132 set_target_properties(UnitTests PROPERTIES
133 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0 133 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0
134 ) 134 )
135
136 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
137 # Explicitly adding "-lstdc++ -lm" during linking for LSB had to be
138 # introduced on the BuildBot server for LSB Release builds between
139 # "OrthancMySQL-4.0" and "OrthancMySQL-4.1", for unclear
140 # reasons. Without this option, many symbols are left undefined
141 # while linking "UnitTests" in release mode. Similar to:
142 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14001
143 target_link_libraries(UnitTests stdc++ m)
144 endif()