diff options
author | Brad King <brad.king@kitware.com> | 2018-06-29 12:56:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-06-29 12:57:10 (GMT) |
commit | da1f5336962b5f34dddd95c11ca7f774cea7d99e (patch) | |
tree | 52b753698af160af6f8c500f5e407dc2b6d4a576 /Modules | |
parent | 08813b17a1500830f166d97ffed21c700de80bbb (diff) | |
parent | 826bf5c45451900869ca681768d8f291311c75ca (diff) | |
download | CMake-da1f5336962b5f34dddd95c11ca7f774cea7d99e.zip CMake-da1f5336962b5f34dddd95c11ca7f774cea7d99e.tar.gz CMake-da1f5336962b5f34dddd95c11ca7f774cea7d99e.tar.bz2 |
Merge topic 'FindOpenMP-avoid-warning-in-check'
826bf5c454 FindOpenMP: Avoid warning in check code
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Henry Schreiner <henryschreineriii@gmail.com>
Merge-request: !2176
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenMP.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake index 329ace1..df0bbc4 100644 --- a/Modules/FindOpenMP.cmake +++ b/Modules/FindOpenMP.cmake @@ -126,7 +126,7 @@ set(OpenMP_C_CXX_TEST_SOURCE #include <omp.h> int main() { #ifdef _OPENMP - int n = omp_get_max_threads(); + omp_get_max_threads(); return 0; #else breaks_on_purpose |