From 68afe4d88fa6c2e65d96e44948ee7942c15c1511 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Wed, 30 Nov 2022 05:12:01 -0800 Subject: [PATCH] only add unix flags on unix --- depends/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/depends/CMakeLists.txt b/depends/CMakeLists.txt index e1c07bd92..bf2064cb8 100644 --- a/depends/CMakeLists.txt +++ b/depends/CMakeLists.txt @@ -4,7 +4,9 @@ add_subdirectory(lua) add_subdirectory(md5) add_subdirectory(protobuf) add_subdirectory(googletest) -set_target_properties(gtest PROPERTIES COMPILE_FLAGS "-Wno-maybe-uninitialized -Wno-sign-compare") +if(UNIX) + set_target_properties(gtest PROPERTIES COMPILE_FLAGS "-Wno-maybe-uninitialized -Wno-sign-compare") +endif() # Don't build tinyxml if it's being externally linked against. if(NOT TinyXML_FOUND)