Skip to content

Commit 03b30d7

Browse files
committed
[cmake] Add TRACY_PUBLIC_DIR to the build-tree interface include dirs
1 parent 0961537 commit 03b30d7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,11 @@ function(create_library)
259259
# set include dirs used by dependent projects to consume this target
260260
target_include_directories(
261261
${PROJECT_NAME}
262-
PUBLIC $<INSTALL_INTERFACE:include> $<INSTALL_INTERFACE:${THIRD_PARTY_HEADERS_INSTALL_DIR}>
262+
PUBLIC $<INSTALL_INTERFACE:include>
263+
$<INSTALL_INTERFACE:${THIRD_PARTY_HEADERS_INSTALL_DIR}>
263264
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
264265
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
266+
$<BUILD_INTERFACE:${TRACY_PUBLIC_DIR}>
265267
)
266268

267269
foreach(headerFile ${LIB_HEADERS})

gar/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ endif()
2424
target_link_libraries(aligator_gar PRIVATE Tracy::TracyClient)
2525
target_include_directories(
2626
aligator_gar INTERFACE $<INSTALL_INTERFACE:${THIRD_PARTY_HEADERS_INSTALL_DIR}>
27+
$<BUILD_INTERFACE:${TRACY_PUBLIC_DIR}>
2728
)
2829

2930
add_library(aligator::gar ALIAS aligator_gar)

0 commit comments

Comments
 (0)