diff 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
line wrap: on
line diff
--- a/Resources/CMake/Compiler.cmake	Fri Jan 24 18:09:56 2020 +0100
+++ b/Resources/CMake/Compiler.cmake	Sat Jan 25 10:40:20 2020 +0100
@@ -7,6 +7,15 @@
   SET(STANDALONE_BUILD ON)
 endif()
 
+
+if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
+  # Cache the environment variables "LSB_CC" and "LSB_CXX" for further
+  # use by "ExternalProject" in CMake
+  SET(CMAKE_LSB_CC $ENV{LSB_CC} CACHE STRING "")
+  SET(CMAKE_LSB_CXX $ENV{LSB_CXX} CACHE STRING "")
+endif()
+
+
 if (CMAKE_COMPILER_IS_GNUCXX)
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-long-long")