summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenMP.cmake
diff options
context:
space:
mode:
authorHenry Fredrick Schreiner <henry.fredrick.schreiner@cern.ch>2018-03-01 11:35:38 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-07 13:25:45 (GMT)
commitb4c539e6511110e893416467a77c36ec7ebef81d (patch)
treee9ebbb35ca89723150bb686ca2bb7d37ecc768a2 /Modules/FindOpenMP.cmake
parent7dd8c7a680f409fdb1d78138e20fa9b80206431a (diff)
downloadCMake-b4c539e6511110e893416467a77c36ec7ebef81d.zip
CMake-b4c539e6511110e893416467a77c36ec7ebef81d.tar.gz
CMake-b4c539e6511110e893416467a77c36ec7ebef81d.tar.bz2
FindOpenMP: Verify in test source that OMP library is linked
Diffstat (limited to 'Modules/FindOpenMP.cmake')
-rw-r--r--Modules/FindOpenMP.cmake1
1 files changed, 1 insertions, 0 deletions
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 <omp.h>
int main() {
#ifdef _OPENMP
+ int n = omp_get_max_threads();
return 0;
#else
breaks_on_purpose