Skip to content

Commit 4f0c495

Browse files
committed
Support OMP
1 parent 6c28cce commit 4f0c495

File tree

3 files changed

+528
-3
lines changed

3 files changed

+528
-3
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 3.4.3)
22
enable_testing()
33

44
if("${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()
99
endif()
1010

@@ -55,5 +55,8 @@ add_subdirectory(test)
5555
# some extra utilities
5656
add_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

5962
endif()

0 commit comments

Comments
 (0)