From 07d2b5ce121d575d6414fecfa383d332ca745404 Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Thu, 28 Jul 2022 12:08:19 -0700 Subject: [PATCH] cgltf: enable validation asserts in debug builds --- third_party/cgltf/tnt/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third_party/cgltf/tnt/CMakeLists.txt b/third_party/cgltf/tnt/CMakeLists.txt index a2f2931e2d..f0ed872007 100644 --- a/third_party/cgltf/tnt/CMakeLists.txt +++ b/third_party/cgltf/tnt/CMakeLists.txt @@ -11,6 +11,8 @@ set(PUBLIC_HDRS include_directories(${PUBLIC_HDR_DIR}) +add_compile_definitions($<$:CGLTF_VALIDATE_ENABLE_ASSERTS=1>) + add_library(${TARGET} INTERFACE) target_sources(${TARGET} INTERFACE ${PUBLIC_HDRS}) target_include_directories(${TARGET} INTERFACE ${PUBLIC_HDR_DIR})