From 73d309ebfa93f176cf96ba9e1b144a5b31edd2e5 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Thu, 19 Mar 2026 02:38:10 +0900 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55c9c84..b6f51e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,15 @@ if (TINYGLTF_BUILD_TESTS) ${CMAKE_CURRENT_SOURCE_DIR}/tests ) add_test(NAME tester COMMAND tester WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests) + + # Build and run tests with the custom JSON backend enabled to catch regressions + add_executable(tester_customjson tests/tester.cc) + target_include_directories(tester_customjson PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/tests + ) + target_compile_definitions(tester_customjson PRIVATE TINYGLTF_USE_CUSTOM_JSON) + add_test(NAME tester_customjson COMMAND tester_customjson WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests) endif (TINYGLTF_BUILD_TESTS) #