From b4c539e6511110e893416467a77c36ec7ebef81d Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Thu, 1 Mar 2018 12:35:38 +0100 Subject: FindOpenMP: Verify in test source that OMP library is linked --- Modules/FindOpenMP.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake index 3f8f61a..95e5cdc 100644 --- a/Modules/FindOpenMP.cmake +++ b/Modules/FindOpenMP.cmake @@ -125,6 +125,7 @@ set(OpenMP_C_CXX_TEST_SOURCE #include int main() { #ifdef _OPENMP + int n = omp_get_max_threads(); return 0; #else breaks_on_purpose -- cgit v0.12