mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
FindOpenMP: Verify in test source that OMP library is linked
This commit is contained in:
1 parent
7dd8c7a680
commit
b4c539e651
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user