D9306 omp 4.1 async offload support (partial): build changes for version 4.1
llvm-svn: 236746
diff --git a/openmp/runtime/cmake/PerlFlags.cmake b/openmp/runtime/cmake/PerlFlags.cmake
index c34d29d..978b72f 100644
--- a/openmp/runtime/cmake/PerlFlags.cmake
+++ b/openmp/runtime/cmake/PerlFlags.cmake
@@ -71,6 +71,9 @@
elseif(${STUBS_LIBRARY})
append_gd_flags("-D stub")
endif()
+ if(${omp_version} GREATER 41 OR ${omp_version} EQUAL 41)
+ append_gd_flags("-D OMP_41")
+ endif()
if(${omp_version} GREATER 40 OR ${omp_version} EQUAL 40)
append_gd_flags("-D OMP_40")
endif()
diff --git a/openmp/runtime/cmake/SourceFiles.cmake b/openmp/runtime/cmake/SourceFiles.cmake
index 7c0de6c..c9d4a32 100644
--- a/openmp/runtime/cmake/SourceFiles.cmake
+++ b/openmp/runtime/cmake/SourceFiles.cmake
@@ -78,7 +78,7 @@
append_cpp_source_file("kmp_dispatch.cpp")
append_cpp_source_file("kmp_lock.cpp")
append_cpp_source_file("kmp_sched.cpp")
- if("${omp_version}" STREQUAL "40")
+ if(${omp_version} GREATER 40 OR ${omp_version} EQUAL 40)
append_cpp_source_file("kmp_taskdeps.cpp")
append_cpp_source_file("kmp_cancel.cpp")
endif()