Mercurial > hg > orthanc-databases
changeset 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 |
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:12:02 2021 +0200 +++ b/MySQL/CMakeLists.txt Wed Jun 30 10:10:38 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++" 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++) +endif()