File tree Expand file tree Collapse file tree 3 files changed +528
-3
lines changed
Expand file tree Collapse file tree 3 files changed +528
-3
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 3.4.3)
22enable_testing ()
33
44if ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" )
5- # require at least gcc 4.9 !!
6- if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9 )
7- message (FATAL_ERROR "GCC version must be at least 4.9 !" )
5+ # require at least gcc 12.0 !!
6+ if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.0 )
7+ message (FATAL_ERROR "GCC version must be at least 12.0 !" )
88 endif ()
99endif ()
1010
@@ -55,5 +55,8 @@ add_subdirectory(test)
5555# some extra utilities
5656add_subdirectory (utility)
5757
58+ string (REPLACE "." ";" LLVM_PACKAGE_VERSION_LIST ${LLVM_PACKAGE_VERSION} )
59+ list (GET LLVM_PACKAGE_VERSION_LIST 0 LLVM_PACKAGE_VERSION_MAJOR)
60+ install (FILES omp.h DESTINATION lib/clang/${LLVM_PACKAGE_VERSION_MAJOR} /include )
5861
5962endif ()
You can’t perform that action at this time.
0 commit comments