IAP GITLAB

Skip to content
Snippets Groups Projects

Resolve "Cmake on centos 7.5"

Merged Lukas Nellen requested to merge 376-cmake-on-centos-7-5 into master
3 files
+ 17
2
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -14,10 +14,15 @@ endif ()
@@ -14,10 +14,15 @@ endif ()
#
#
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set (CORSIKA_OS_WINDOWS TRUE)
set (CORSIKA_OS_WINDOWS TRUE)
set (CORSIKA_OS "Windows")
set (CORSIKA_OS "Windows")
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set (CORSIKA_OS_LINUX TRUE)
set (CORSIKA_OS_LINUX TRUE)
set (CORSIKA_OS "Linux")
set (CORSIKA_OS "Linux")
 
# check for RedHat/CentOS compiler from the software collections (scl)
 
string (FIND ${CMAKE_CXX_COMPILER} "/opt/rh/devtoolset-" index)
 
if (${index} EQUAL 0)
 
set (CORSIKA_SCL_CXX TRUE)
 
endif ()
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set (CORSIKA_OS_MAC TRUE)
set (CORSIKA_OS_MAC TRUE)
set (CORSIKA_OS "Mac")
set (CORSIKA_OS "Mac")
Loading