Mercurial > hg > orthanc
comparison OrthancFramework/Resources/CMake/Compiler.cmake @ 4755:70d94dcac60c
revert incorrect changeset 4747 (24dbf3f013d9)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 19 Jul 2021 15:13:18 +0200 |
parents | 24dbf3f013d9 |
children | 7053502fbf97 |
comparison
equal
deleted
inserted
replaced
4752:2f35e6b765e5 | 4755:70d94dcac60c |
---|---|
40 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") | 40 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") |
41 # Cache the environment variables "LSB_CC" and "LSB_CXX" for further | 41 # Cache the environment variables "LSB_CC" and "LSB_CXX" for further |
42 # use by "ExternalProject" in CMake | 42 # use by "ExternalProject" in CMake |
43 SET(CMAKE_LSB_CC $ENV{LSB_CC} CACHE STRING "") | 43 SET(CMAKE_LSB_CC $ENV{LSB_CC} CACHE STRING "") |
44 SET(CMAKE_LSB_CXX $ENV{LSB_CXX} CACHE STRING "") | 44 SET(CMAKE_LSB_CXX $ENV{LSB_CXX} CACHE STRING "") |
45 | |
46 # Explicitly adding "-lstdc++ -lm" during linking for LSB had to be | |
47 # introduced on the BuildBot server for LSB Release builds between | |
48 # "OrthancMySQL-4.0" and "OrthancMySQL-4.1" and after | |
49 # "Orthanc-1.9.5", for unclear reasons. Without this option, many | |
50 # symbols are left undefined while linking. Similar to: | |
51 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14001 | |
52 link_libraries(stdc++ m) | |
53 endif() | 45 endif() |
54 | 46 |
55 | 47 |
56 if (CMAKE_COMPILER_IS_GNUCXX) | 48 if (CMAKE_COMPILER_IS_GNUCXX) |
57 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-long-long") | 49 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-long-long") |