Mercurial > hg > orthanc-stone
comparison Resources/Orthanc/LinuxStandardBaseToolchain.cmake @ 1273:398ea4259e65
merge
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 03 Feb 2020 14:57:22 +0100 |
parents | 9a0a95c0b578 |
children | 86f89ab3563e |
comparison
equal
deleted
inserted
replaced
1272:a989c7d46b9a | 1273:398ea4259e65 |
---|---|
29 SET(CMAKE_SYSTEM_VERSION LinuxStandardBase) | 29 SET(CMAKE_SYSTEM_VERSION LinuxStandardBase) |
30 SET(CMAKE_SYSTEM_PROCESSOR ${LSB_TARGET_PROCESSOR}) | 30 SET(CMAKE_SYSTEM_PROCESSOR ${LSB_TARGET_PROCESSOR}) |
31 | 31 |
32 # which compilers to use for C and C++ | 32 # which compilers to use for C and C++ |
33 SET(CMAKE_C_COMPILER ${LSB_PATH}/bin/lsbcc) | 33 SET(CMAKE_C_COMPILER ${LSB_PATH}/bin/lsbcc) |
34 CMAKE_FORCE_CXX_COMPILER(${LSB_PATH}/bin/lsbc++ GNU) | 34 |
35 if (${CMAKE_VERSION} VERSION_LESS "3.6.0") | |
36 CMAKE_FORCE_CXX_COMPILER(${LSB_PATH}/bin/lsbc++ GNU) | |
37 else() | |
38 SET(CMAKE_CXX_COMPILER ${LSB_PATH}/bin/lsbc++) | |
39 endif() | |
35 | 40 |
36 # here is the target environment located | 41 # here is the target environment located |
37 SET(CMAKE_FIND_ROOT_PATH ${LSB_PATH}) | 42 SET(CMAKE_FIND_ROOT_PATH ${LSB_PATH}) |
38 | 43 |
39 # adjust the default behaviour of the FIND_XXX() commands: | 44 # adjust the default behaviour of the FIND_XXX() commands: |