Mercurial > hg > orthanc-databases
comparison MySQL/CMakeLists.txt @ 295:e91a17e3bdb0 OrthancMySQL-4.1
cont fix lsb
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Jun 2021 10:23:34 +0200 |
parents | adb5e86645a6 |
children | 024ec14b9121 |
comparison
equal
deleted
inserted
replaced
294:adb5e86645a6 | 295:e91a17e3bdb0 |
---|---|
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 | 135 |
136 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") | 136 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") |
137 # Explicitly adding "-lstdc++" during linking for LSB had to be | 137 # Explicitly adding "-lstdc++ -lm" during linking for LSB had to be |
138 # introduced on the BuildBot server for LSB Release builds between | 138 # introduced on the BuildBot server for LSB Release builds between |
139 # "OrthancMySQL-4.0" and "OrthancMySQL-4.1", for unclear | 139 # "OrthancMySQL-4.0" and "OrthancMySQL-4.1", for unclear |
140 # reasons. Without this option, many symbols are left undefined | 140 # reasons. Without this option, many symbols are left undefined |
141 # while linking "UnitTests" in release mode. Similar to: | 141 # while linking "UnitTests" in release mode. Similar to: |
142 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14001 | 142 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14001 |
143 target_link_libraries(UnitTests stdc++) | 143 target_link_libraries(UnitTests stdc++ m) |
144 endif() | 144 endif() |