Mercurial > hg > orthanc-databases
comparison MySQL/CMakeLists.txt @ 294:adb5e86645a6 OrthancMySQL-4.1
fix lsb build on the continuous integration server in release mode
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Jun 2021 10:10:38 +0200 |
parents | a6b5a9e915ef |
children | e91a17e3bdb0 |
comparison
equal
deleted
inserted
replaced
292:a6b5a9e915ef | 294:adb5e86645a6 |
---|---|
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++" 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++) | |
144 endif() |