From de91fa7f28813b8ada2ebab8d12a155f6510402a Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Fri, 11 Nov 2022 16:12:51 -0800 Subject: [PATCH] Adds -Wno-sign-compare to test targets --- library/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 3c85d5861..f8a60cfc0 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -87,6 +87,7 @@ macro(dfhack_test name files) add_executable(${name} test.cpp ${files}) target_link_libraries(${name} dfhack gtest) add_test(NAME ${name} COMMAND ${name}) + set_target_properties(${name} PROPERTIES COMPILE_FLAGS "-Wno-sign-compare") endmacro() if(BUILD_TESTING)