avoid treating libexpat build warnings as errors

this effectively overrides the CMAKE EXPAT_WARNINGS_AS_ERRORS to be
treated as always OFF. since we currently add -Werror at the top-level
CMakeLists.txt file, that variable was previously effectively always ON.
Unless we want to be on the hook for solving libexpat build warnings, I
believe this way will avoid unnecessary build breakages for users.
develop
myk002 2022-02-04 13:35:06 -08:00 committed by Myk
parent 57b4a419b3
commit 7cf055fcd0
1 changed files with 3 additions and 0 deletions

@ -33,6 +33,9 @@ set(EXPAT_SHARED_LIBS OFF CACHE BOOL "")
set(EXPAT_BUILD_DOCS OFF CACHE BOOL "") set(EXPAT_BUILD_DOCS OFF CACHE BOOL "")
set(EXPAT_ENABLE_INSTALL OFF CACHE BOOL "") set(EXPAT_ENABLE_INSTALL OFF CACHE BOOL "")
add_subdirectory(libexpat/expat) add_subdirectory(libexpat/expat)
if(UNIX)
set_target_properties(expat PROPERTIES COMPILE_FLAGS "-Wno-error")
endif()
set(LIBZIP_BUILD_DOC OFF CACHE BOOL "") set(LIBZIP_BUILD_DOC OFF CACHE BOOL "")
set(LIBZIP_BUILD_EXAMPLES OFF CACHE BOOL "") set(LIBZIP_BUILD_EXAMPLES OFF CACHE BOOL "")