summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-09 10:08:39 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-09 10:17:44 (GMT)
commit656d6ea8215eaff0c3097efd8b1473d3233568cd (patch)
treebd7eaf90143bb9988ef588310c7d0b76bccfcb00 /Modules
parent1e26c84b96c0ec6887de2cf5e14061ccb83bdbfe (diff)
downloadCMake-656d6ea8215eaff0c3097efd8b1473d3233568cd.zip
CMake-656d6ea8215eaff0c3097efd8b1473d3233568cd.tar.gz
CMake-656d6ea8215eaff0c3097efd8b1473d3233568cd.tar.bz2
FindOpenMP: Set version variables every time CMake runs
The version is determined in two steps. First, the "spec date" is detected and cached. Second, the date is converted to a version. Move the second step out of the spec date cache guard condition so that it runs every time even if the spec date is already cached. Fixes: #19150
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindOpenMP.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index a4b1e1e..bb38e28 100644
--- a/Modules/FindOpenMP.cmake
+++ b/Modules/FindOpenMP.cmake
@@ -509,8 +509,8 @@ foreach(LANG IN LISTS OpenMP_FINDLIST)
_OPENMP_GET_SPEC_DATE("${LANG}" OpenMP_${LANG}_SPEC_DATE_INTERNAL)
set(OpenMP_${LANG}_SPEC_DATE "${OpenMP_${LANG}_SPEC_DATE_INTERNAL}" CACHE
INTERNAL "${LANG} compiler's OpenMP specification date")
- _OPENMP_SET_VERSION_BY_SPEC_DATE("${LANG}")
endif()
+ _OPENMP_SET_VERSION_BY_SPEC_DATE("${LANG}")
set(OpenMP_${LANG}_FIND_QUIETLY ${OpenMP_FIND_QUIETLY})
set(OpenMP_${LANG}_FIND_REQUIRED ${OpenMP_FIND_REQUIRED})