comparison MySQL/CMakeLists.txt @ 317:be8b0ac774e2

removed suspicious changeset 294 (adb5e86645a6)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Jul 2021 15:16:20 +0200
parents 1c2cd90418c9
children 4a4087a79b9b
comparison
equal deleted inserted replaced
316:1c2cd90418c9 317:be8b0ac774e2
135 135
136 target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES}) 136 target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES})
137 set_target_properties(UnitTests PROPERTIES 137 set_target_properties(UnitTests PROPERTIES
138 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0 138 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0
139 ) 139 )
140
141 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
142 # Explicitly adding "-lstdc++ -lm" during linking for LSB had to be
143 # introduced on the BuildBot server for LSB Release builds between
144 # "OrthancMySQL-4.0" and "OrthancMySQL-4.1", for unclear
145 # reasons. Without this option, many symbols are left undefined
146 # while linking "UnitTests" in release mode. Similar to:
147 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14001
148 #
149 # NB: This will be automatically added in Orthanc Framework > 1.9.5
150 target_link_libraries(UnitTests stdc++ m)
151 endif()