Skip to content

Commit

Permalink
use CMAKE_CURRENT_BINARY_DIR to prevent issues with nested dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLartians committed Sep 18, 2023
1 parent 4a44cbe commit 0207350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ project(Playground LANGUAGES CXX)
file(
DOWNLOAD
https://github.com/cpm-cmake/CPM.cmake/releases/download/v0.38.3/CPM.cmake
${CMAKE_BINARY_DIR}/cmake/CPM.cmake
${CMAKE_CURRENT_BINARY_DIR}/cmake/CPM.cmake
EXPECTED_HASH SHA256=cc155ce02e7945e7b8967ddfaff0b050e958a723ef7aad3766d368940cb15494
)
include(${CMAKE_BINARY_DIR}/cmake/CPM.cmake)
include(${CMAKE_CURRENT_BINARY_DIR}/cmake/CPM.cmake)

# ---- Add dependencies via CPM ----
# See https://github.com/TheLartians/CPM.cmake for details and examples
Expand Down

0 comments on commit 0207350

Please sign in to comment.