mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
FindOpenMP: Verify in test source that OMP library is linked
This commit is contained in:
committed by
Brad King
parent
7dd8c7a680
commit
b4c539e651
@@ -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