diff --git a/third_party/libassimp/tnt/CMakeLists.txt b/third_party/libassimp/tnt/CMakeLists.txt index b9be0d5859b..92fe227d69e 100644 --- a/third_party/libassimp/tnt/CMakeLists.txt +++ b/third_party/libassimp/tnt/CMakeLists.txt @@ -278,6 +278,7 @@ if(NOT MSVC) PRIVATE -Wno-unused-const-variable PRIVATE -Wno-unused-private-field PRIVATE -Wno-unused-variable + PRIVATE -Wno-deprecated-non-prototype # See https://github.com/madler/zlib/issues/633 ) else() target_compile_options(${TARGET} PRIVATE /bigobj) diff --git a/third_party/libz/tnt/CMakeLists.txt b/third_party/libz/tnt/CMakeLists.txt index f05a95936f8..ae6033f320e 100644 --- a/third_party/libz/tnt/CMakeLists.txt +++ b/third_party/libz/tnt/CMakeLists.txt @@ -46,16 +46,17 @@ set(SRCS ${SRC_DIR}/zutil.c ) +# we're building a library +add_library(${TARGET} STATIC ${PRIVATE_HDRS} ${PUBLIC_HDRS} ${SRCS}) + if (NOT MSVC) - add_definitions( - -Wno-implicit-function-declaration - -Wno-shift-negative-value + target_compile_options(${TARGET} + PRIVATE -Wno-implicit-function-declaration + PRIVATE -Wno-shift-negative-value + PRIVATE -Wno-deprecated-non-prototype # See https://github.com/madler/zlib/issues/633 ) endif() -# we're building a library -add_library(${TARGET} STATIC ${PRIVATE_HDRS} ${PUBLIC_HDRS} ${SRCS}) - # specify where the public headers of this library are target_include_directories (${TARGET} PUBLIC ${PUBLIC_HDR_DIR}) set_target_properties(${TARGET} PROPERTIES FOLDER ThirdParty)