diff options
author | Brad King <brad.king@kitware.com> | 2016-07-13 15:01:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-07-13 15:02:01 (GMT) |
commit | 8f1103c0fd5e51cbbfc6f66ada72fbead53297d6 (patch) | |
tree | 75d867734c2027d5eb67ea918387ca9845bbb671 | |
parent | ec963f04cb713701dda9f12a433930845e5c2609 (diff) | |
download | CMake-8f1103c0fd5e51cbbfc6f66ada72fbead53297d6.zip CMake-8f1103c0fd5e51cbbfc6f66ada72fbead53297d6.tar.gz CMake-8f1103c0fd5e51cbbfc6f66ada72fbead53297d6.tar.bz2 |
FindOpenMP: Cleanup all variables unconditionally
-rw-r--r-- | Modules/FindOpenMP.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake index c8f716e..768db12 100644 --- a/Modules/FindOpenMP.cmake +++ b/Modules/FindOpenMP.cmake @@ -186,7 +186,6 @@ if(CMAKE_CXX_COMPILER_LOADED) list(APPEND _OPENMP_REQUIRED_VARS OpenMP_CXX_FLAGS) unset(OpenMP_CXX_FLAG_CANDIDATES) - unset(OpenMP_CXX_TEST_SOURCE) endif() # check Fortran compiler @@ -220,7 +219,6 @@ if(CMAKE_Fortran_COMPILER_LOADED) list(APPEND _OPENMP_REQUIRED_VARS OpenMP_Fortran_FLAGS) unset(OpenMP_Fortran_FLAG_CANDIDATES) - unset(OpenMP_Fortran_TEST_SOURCE) endif() set(CMAKE_REQUIRED_QUIET ${CMAKE_REQUIRED_QUIET_SAVE}) @@ -237,3 +235,7 @@ if(_OPENMP_REQUIRED_VARS) else() message(SEND_ERROR "FindOpenMP requires C or CXX language to be enabled") endif() + +unset(OpenMP_C_TEST_SOURCE) +unset(OpenMP_CXX_TEST_SOURCE) +unset(OpenMP_Fortran_TEST_SOURCE) |