mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
FindOpenMP: Restore OpenMP_FOUND result variable
The overhaul in commit v3.9.0-rc1~207^2~1 (FindOpenMP: Complete overhaul, 2017-04-24) documented this variable but accidentally left it unset. Fixes: #17251
This commit is contained in:
committed by
Brad King
parent
fca4423786
commit
91fbda8247
@@ -429,6 +429,8 @@ foreach(LANG IN ITEMS C CXX Fortran)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(OpenMP_FOUND ${OPENMP_FOUND})
|
||||
|
||||
if(CMAKE_Fortran_COMPILER_LOADED AND OpenMP_Fortran_FOUND)
|
||||
if(NOT DEFINED OpenMP_Fortran_HAVE_OMPLIB_MODULE)
|
||||
set(OpenMP_Fortran_HAVE_OMPLIB_MODULE FALSE CACHE BOOL INTERNAL "")
|
||||
|
||||
Reference in New Issue
Block a user