Mercurial > hg > orthanc
comparison Resources/CMake/Compiler.cmake @ 3625:d5cf43519a49
fix lsb
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 25 Jan 2020 10:40:20 +0100 |
parents | e01900f913e7 |
children | a3e38994d95a |
comparison
equal
deleted
inserted
replaced
3624:b53cab5bad84 | 3625:d5cf43519a49 |
---|---|
4 "${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") | 4 "${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") |
5 # Cross-compilation necessarily implies standalone and static build | 5 # Cross-compilation necessarily implies standalone and static build |
6 SET(STATIC_BUILD ON) | 6 SET(STATIC_BUILD ON) |
7 SET(STANDALONE_BUILD ON) | 7 SET(STANDALONE_BUILD ON) |
8 endif() | 8 endif() |
9 | |
10 | |
11 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") | |
12 # Cache the environment variables "LSB_CC" and "LSB_CXX" for further | |
13 # use by "ExternalProject" in CMake | |
14 SET(CMAKE_LSB_CC $ENV{LSB_CC} CACHE STRING "") | |
15 SET(CMAKE_LSB_CXX $ENV{LSB_CXX} CACHE STRING "") | |
16 endif() | |
17 | |
9 | 18 |
10 if (CMAKE_COMPILER_IS_GNUCXX) | 19 if (CMAKE_COMPILER_IS_GNUCXX) |
11 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-long-long") | 20 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-long-long") |
12 | 21 |
13 # --std=c99 makes libcurl not to compile | 22 # --std=c99 makes libcurl not to compile |