diff options
author | Brad King <brad.king@kitware.com> | 2021-12-10 14:42:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-12-10 14:51:42 (GMT) |
commit | 8595851d588f674297b057d3874d41446d32be39 (patch) | |
tree | a8a44f765a3df75f60e3bf58918e8223beb3a3d9 /Modules | |
parent | a6fa3fa136c291c36aefbc79b62995a63bf9107b (diff) | |
download | CMake-8595851d588f674297b057d3874d41446d32be39.zip CMake-8595851d588f674297b057d3874d41446d32be39.tar.gz CMake-8595851d588f674297b057d3874d41446d32be39.tar.bz2 |
FindBLAS: Find OpenMP dependency quietly
The `find_package(OpenMP)` calls added/updated by:
* commit f7f3d8987a (FindBLAS: Add dependency of OpenBLAS on OpenMP for
BLA_STATIC, 2020-11-10, v3.20.0-rc1~492^2)
* commit 9ef82d95d8 (FindBLAS: Fix detection of OpenMP as dependency of
BLA_STATIC, 2021-04-07, v3.20.1~3^2)
were missing the `QUIET` option.
Fixes: #23000
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindBLAS.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake index 8ed7558..e3bf8f9 100644 --- a/Modules/FindBLAS.cmake +++ b/Modules/FindBLAS.cmake @@ -756,10 +756,10 @@ if(BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All") set(_threadlibs "${CMAKE_THREAD_LIBS_INIT}") if(BLA_STATIC) if (CMAKE_C_COMPILER_LOADED) - find_package(OpenMP COMPONENTS C) + find_package(OpenMP QUIET COMPONENTS C) list(PREPEND _threadlibs "${OpenMP_C_LIBRARIES}") elseif(CMAKE_CXX_COMPILER_LOADED) - find_package(OpenMP COMPONENTS CXX) + find_package(OpenMP QUIET COMPONENTS CXX) list(PREPEND _threadlibs "${OpenMP_CXX_LIBRARIES}") endif() endif() |