From cf24fc78291195b02cd488c9148cf076bb45988a Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Wed, 30 Nov 2022 06:57:11 -0800 Subject: [PATCH] ugh unit tests don't work on our OSX build either --- CMakeLists.txt | 2 +- depends/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d189847a6..a9fc3ec30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -423,7 +423,7 @@ add_subdirectory(depends) # Testing with CTest macro(dfhack_test name files) -if(UNIX) # remove this once our MSVC build env has been updated +if(UNIX AND NOT APPLE) # remove this once our MSVC build env has been updated add_executable(${name} ${files}) target_include_directories(${name} PUBLIC depends/googletest/googletest/include) target_link_libraries(${name} dfhack gtest SDL) diff --git a/depends/CMakeLists.txt b/depends/CMakeLists.txt index 91d468fd8..15ff52488 100644 --- a/depends/CMakeLists.txt +++ b/depends/CMakeLists.txt @@ -4,7 +4,7 @@ add_subdirectory(lua) add_subdirectory(md5) add_subdirectory(protobuf) -if(UNIX) # remove this once our MSVC build env has been updated +if(UNIX AND NOT APPLE) # remove this once our MSVC build env has been updated option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" OFF) add_subdirectory(googletest) if(UNIX)