From 5d780b5a6deddaf57c514dccc2b9f624f2b13cd3 Mon Sep 17 00:00:00 2001 From: ccpisheden Date: Tue, 1 Dec 2026 12:49:34 +0100 Subject: [PATCH] Include GoogleTest in the TrinityAL tests CMakeLists TrinityAL's tests call gtest_discover_tests without including the GoogleTest module. It only worked because the shader compiler's module-mode find_package(GTest) included it first, so configuring with BUILD_SHADER_COMPILER=OFF failed with: Unknown CMake command "gtest_discover_tests". Include it explicitly, as the Trinity tests already do. Co-Authored-By: Claude Opus 5.5 --- trinityal/tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/trinityal/tests/CMakeLists.txt b/trinityal/tests/CMakeLists.txt index 56644ec7e..839e60a65 100644 --- a/trinityal/tests/CMakeLists.txt +++ b/trinityal/tests/CMakeLists.txt @@ -118,6 +118,7 @@ set(_SHADERS_METAL set(GENERATED_SOURCES_DIR ${CMAKE_CURRENT_BINARY_DIR}/GeneratedSources) find_package(GTest CONFIG REQUIRED) +include(GoogleTest) function(set_shared_trinityaltest_properties target)