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()
115
115
# https://github.com/xianyi/OpenBLAS/releases/tag/v0.3.21
116
116
set (_openblas_BUILD_WITHOUT_LAPACK "OFF" )
117
117
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 ()
118
126
hunter_cmake_args (
119
127
OpenBLAS
120
128
CMAKE_ARGS
121
129
BUILD_TESTING=OFF
122
130
NOFORTRAN=1
123
131
BUILD_WITHOUT_LAPACK=${_openblas_BUILD_WITHOUT_LAPACK}
132
+ ${_openblas_cflags}
124
133
)
125
134
hunter_pick_scheme (DEFAULT url_sha1_cmake )
126
135
set (_openblas_unrelocatable_text_files "" )
You can’t perform that action at this time.
0 commit comments