File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -115,12 +115,21 @@ else()
115115 # https://github.com/xianyi/OpenBLAS/releases/tag/v0.3.21
116116 set (_openblas_BUILD_WITHOUT_LAPACK "OFF" )
117117 endif ()
118+ # silence warnings on OpenBLAS build
119+ if (CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "GNU" )
120+ set (_openblas_cflags "CMAKE_C_FLAGS=-w" )
121+ elseif (MSVC )
122+ set (_openblas_cflags "CMAKE_C_FLAGS=/W0" )
123+ else ()
124+ set (_openblas_cflags)
125+ endif ()
118126 hunter_cmake_args(
119127 OpenBLAS
120128 CMAKE_ARGS
121129 BUILD_TESTING=OFF
122130 NOFORTRAN=1
123131 BUILD_WITHOUT_LAPACK=${_openblas_BUILD_WITHOUT_LAPACK}
132+ ${_openblas_cflags}
124133 )
125134 hunter_pick_scheme(DEFAULT url_sha1_cmake)
126135 set (_openblas_unrelocatable_text_files "" )
You can’t perform that action at this time.
0 commit comments