Skip to content

Commit

Permalink
Fix whereami dependency target (#100)
Browse files Browse the repository at this point in the history
Instead of relying on CMAKE_CURRENT_BINARY_DIR use the source dir
variable generated when importing whereami.
  • Loading branch information
gyatskov authored Sep 19, 2024
1 parent 5b94895 commit 3410509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Dependencies/whereami/whereami.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ FetchContent_Declare(
FetchContent_MakeAvailable(whereami-external)
add_library(whereami IMPORTED INTERFACE)
target_include_directories(whereami
INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/_deps/whereami-external-src/src"
INTERFACE "${whereami-external_SOURCE_DIR}/src"
)
target_sources(whereami
INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/_deps/whereami-external-src/src/whereami.c"
INTERFACE "${whereami-external_SOURCE_DIR}/src/whereami.c"
)

0 comments on commit 3410509

Please sign in to comment.