Do not evaluate tracy.cmake when MLN_USE_TRACY is false (#2664)

This commit is contained in:
Bart Louwers
2024-07-31 19:24:29 +02:00
committed by GitHub
parent ff1db7abd8
commit fad4406fcd
2 changed files with 3 additions and 2 deletions

View File

@@ -1381,7 +1381,7 @@ target_link_libraries(
Mapbox::Base::geojson.hpp
Mapbox::Base::geometry.hpp
Mapbox::Base::variant
TracyClient
$<$<BOOL:${MLN_USE_TRACY}>:TracyClient>
unordered_dense
)
@@ -1412,7 +1412,6 @@ export(TARGETS
mbgl-vendor-unique_resource
mbgl-vendor-vector-tile
mbgl-vendor-wagyu
TracyClient
unordered_dense
FILE MapboxCoreTargets.cmake

2
vendor/tracy.cmake vendored
View File

@@ -1,6 +1,8 @@
if (MLN_USE_TRACY)
add_definitions(-DTRACY_ENABLE)
add_definitions(-DMLN_TRACY_ENABLE)
else()
return()
endif()
include(FetchContent)