diff options
author | Henry Fredrick Schreiner <henry.fredrick.schreiner@cern.ch> | 2018-03-01 11:35:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-07 13:25:45 (GMT) |
commit | b4c539e6511110e893416467a77c36ec7ebef81d (patch) | |
tree | e9ebbb35ca89723150bb686ca2bb7d37ecc768a2 /Modules | |
parent | 7dd8c7a680f409fdb1d78138e20fa9b80206431a (diff) | |
download | CMake-b4c539e6511110e893416467a77c36ec7ebef81d.zip CMake-b4c539e6511110e893416467a77c36ec7ebef81d.tar.gz CMake-b4c539e6511110e893416467a77c36ec7ebef81d.tar.bz2 |
FindOpenMP: Verify in test source that OMP library is linked
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenMP.cmake | 1 |
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 |