summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenMP.cmake
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2019-05-24 17:01:28 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2019-05-24 17:01:28 (GMT)
commit26f2b65fec383bbab74f30c4b0bc6649d0b5b509 (patch)
treef8d7ef2deed31ff0faa3341beeee92fbf26218a7 /Modules/FindOpenMP.cmake
parent0bf53483295a4b7de358e8b85ad44866d89633c5 (diff)
downloadCMake-26f2b65fec383bbab74f30c4b0bc6649d0b5b509.zip
CMake-26f2b65fec383bbab74f30c4b0bc6649d0b5b509.tar.gz
CMake-26f2b65fec383bbab74f30c4b0bc6649d0b5b509.tar.bz2
FindOpenMP: Add 5.0 and VS19 spec dates
Fixes: #19289
Diffstat (limited to 'Modules/FindOpenMP.cmake')
-rw-r--r--Modules/FindOpenMP.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index b909db8..def23bb 100644
--- a/Modules/FindOpenMP.cmake
+++ b/Modules/FindOpenMP.cmake
@@ -347,6 +347,7 @@ macro(_OPENMP_SET_VERSION_BY_SPEC_DATE LANG)
# Preview versions
"201611=5.0" # OpenMP 5.0 preview 1
# Combined versions, 2.5 onwards
+ "201811=5.0"
"201511=4.5"
"201307=4.0"
"201107=3.1"
@@ -363,6 +364,9 @@ macro(_OPENMP_SET_VERSION_BY_SPEC_DATE LANG)
# Fortran version 1.0
"199710=1.0"
)
+ if(MSVC)
+ list(APPEND OpenMP_SPEC_DATE_MAP "2019=2.0")
+ endif()
if(OpenMP_${LANG}_SPEC_DATE)
string(REGEX MATCHALL "${OpenMP_${LANG}_SPEC_DATE}=([0-9]+)\\.([0-9]+)" _version_match "${OpenMP_SPEC_DATE_MAP}")