fixup! Restrict the flags to CLang only
This commit is contained in:
parent
c3e84f4e8f
commit
8868201ff9
|
@ -15,9 +15,12 @@ function(compile_zstd)
|
|||
FetchContent_Populate(ZSTD)
|
||||
|
||||
add_subdirectory(${zstd_SOURCE_DIR}/build/cmake ${zstd_BINARY_DIR})
|
||||
target_compile_options(zstd PRIVATE -Wno-array-bounds -Wno-tautological-compare)
|
||||
target_compile_options(libzstd_static PRIVATE -Wno-array-bounds -Wno-tautological-compare)
|
||||
target_compile_options(zstd-frugal PRIVATE -Wno-array-bounds -Wno-tautological-compare)
|
||||
|
||||
if (CLANG)
|
||||
target_compile_options(zstd PRIVATE -Wno-array-bounds -Wno-tautological-compare)
|
||||
target_compile_options(libzstd_static PRIVATE -Wno-array-bounds -Wno-tautological-compare)
|
||||
target_compile_options(zstd-frugal PRIVATE -Wno-array-bounds -Wno-tautological-compare)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(ZSTD_LIB_INCLUDE_DIR ${zstd_SOURCE_DIR}/lib PARENT_SCOPE)
|
||||
|
|
Loading…
Reference in New Issue