diff Resources/Orthanc/LinuxStandardBaseToolchain.cmake @ 139:e4f1fb4412ea

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 31 Jan 2020 17:23:06 +0100
parents 90692f9c33e0
children d0b02fd48a92
line wrap: on
line diff
--- a/Resources/Orthanc/LinuxStandardBaseToolchain.cmake	Thu May 09 11:36:56 2019 +0200
+++ b/Resources/Orthanc/LinuxStandardBaseToolchain.cmake	Fri Jan 31 17:23:06 2020 +0100
@@ -31,7 +31,12 @@
 
 # which compilers to use for C and C++
 SET(CMAKE_C_COMPILER ${LSB_PATH}/bin/lsbcc)
-CMAKE_FORCE_CXX_COMPILER(${LSB_PATH}/bin/lsbc++ GNU)
+
+if (${CMAKE_VERSION} VERSION_LESS "3.6.0") 
+  CMAKE_FORCE_CXX_COMPILER(${LSB_PATH}/bin/lsbc++ GNU)
+else()
+  SET(CMAKE_CXX_COMPILER ${LSB_PATH}/bin/lsbc++)
+endif()
 
 # here is the target environment located
 SET(CMAKE_FIND_ROOT_PATH ${LSB_PATH})