Do not evaluate tracy.cmake when MLN_USE_TRACY is false (#2664)
This commit is contained in:
@@ -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
2
vendor/tracy.cmake
vendored
@@ -1,6 +1,8 @@
|
||||
if (MLN_USE_TRACY)
|
||||
add_definitions(-DTRACY_ENABLE)
|
||||
add_definitions(-DMLN_TRACY_ENABLE)
|
||||
else()
|
||||
return()
|
||||
endif()
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
Reference in New Issue
Block a user