Skip to content

Commit

Permalink
Use current list dir to make includes work
Browse files Browse the repository at this point in the history
  • Loading branch information
bernedom committed Jul 16, 2024
1 parent bcec8c3 commit 90db38d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter13/ex03_external_cmake_module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ include(FetchContent)
FetchContent_Declare(hadouken
GIT_REPOSITORY https://github.com/mustafakemalgilor/hadouken.git
GIT_TAG 7d0447fcadf8e93d25f242b9bb251ecbcf67f8cb
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/.hadouken"
SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/.hadouken"
)

# Fetch hadouken
FetchContent_MakeAvailable(hadouken)

# Add hadouken module directory to CMake module path
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_BINARY_DIR}/.hadouken/cmake/modules)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/.hadouken/cmake/modules)

# Include some CMake modules provided by the Hadouken
include(misc/Log)
Expand Down

0 comments on commit 90db38d

Please sign in to comment.