From a755e96c1336441c7639eac890bb8e993e6e4897 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 14 May 2026 09:12:04 +1000 Subject: [PATCH] Gate LOD test on meshoptimizer Keep the IfcViewer test CMake in sync with the optional meshoptimizer dependency so test_lod_builder is only added when the package is enabled. Generated with the assistance of an AI coding tool. --- src/ifcviewer/tests/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ifcviewer/tests/CMakeLists.txt b/src/ifcviewer/tests/CMakeLists.txt index b32154f3aa..58095a814d 100644 --- a/src/ifcviewer/tests/CMakeLists.txt +++ b/src/ifcviewer/tests/CMakeLists.txt @@ -36,11 +36,13 @@ add_ifcviewer_unit_test(test_bvh_accel SOURCES ${IFCVIEWER_SRC}/BvhAccel.cpp ) -add_ifcviewer_unit_test(test_lod_builder - SOURCES - ${IFCVIEWER_SRC}/LodBuilder.cpp - LIBS meshoptimizer::meshoptimizer -) +if(WITH_MESH_OPTIMIZER) + add_ifcviewer_unit_test(test_lod_builder + SOURCES + ${IFCVIEWER_SRC}/LodBuilder.cpp + LIBS meshoptimizer::meshoptimizer + ) +endif() add_ifcviewer_unit_test(test_sidecar_cache SOURCES ${IFCVIEWER_SRC}/SidecarCache.cpp