summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenMP.cmake
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-09-14 16:01:23 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2017-09-14 16:02:50 (GMT)
commit23530151b225732ed2999f07fcbb91878bfa3154 (patch)
tree2c9bb743368b937f6bce25a527ae7fa58d2bc944 /Modules/FindOpenMP.cmake
parenta763cffd6b65bbe5572527e39969981bf31d5aca (diff)
downloadCMake-23530151b225732ed2999f07fcbb91878bfa3154.zip
CMake-23530151b225732ed2999f07fcbb91878bfa3154.tar.gz
CMake-23530151b225732ed2999f07fcbb91878bfa3154.tar.bz2
FindOpenMP: Minor environmental improvements
A backup flag for Cray compilers was added and the OpenMP 5.0 Preview 1 document was added to the specification map.
Diffstat (limited to 'Modules/FindOpenMP.cmake')
-rw-r--r--Modules/FindOpenMP.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index 8e9ce7a..4532e61 100644
--- a/Modules/FindOpenMP.cmake
+++ b/Modules/FindOpenMP.cmake
@@ -98,8 +98,8 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
set(OMP_FLAG_Flang "-fopenmp")
set(OMP_FLAG_SunPro "-xopenmp")
set(OMP_FLAG_XL "-qsmp=omp")
- # Cray compiles with OpenMP automatically
- set(OMP_FLAG_Cray " ")
+ # Cray compiler activate OpenMP with -h omp, which is enabled by default.
+ set(OMP_FLAG_Cray " " "-h omp")
# If we know the correct flags, use those
if(DEFINED OMP_FLAG_${CMAKE_${LANG}_COMPILER_ID})
@@ -286,6 +286,8 @@ endfunction()
macro(_OPENMP_SET_VERSION_BY_SPEC_DATE LANG)
set(OpenMP_SPEC_DATE_MAP
+ # Preview versions
+ "201611=5.0" # OpenMP 5.0 preview 1
# Combined versions, 2.5 onwards
"201511=4.5"
"201307=4.0"