Skip to content

Commit

Permalink
Dependencies loading fix: #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Artiom N. committed Nov 18, 2024
1 parent 5221ebb commit dc142e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,10 @@ if (MSVC)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
endif()

set(CPM_SOURCE_CACHE_DEFAULT "${CMAKE_CURRENT_SOURCE_DIR}/third-party" CACHE STRING "" FORCE)
set(CPM_SOURCE_CACHE "${CMAKE_CURRENT_SOURCE_DIR}/third-party" CACHE STRING "" FORCE)
if (KNP_BUILD_AUTONOMOUS)
set(CPM_SOURCE_CACHE_DEFAULT "${CMAKE_CURRENT_SOURCE_DIR}/third-party" CACHE STRING "")
set(CPM_SOURCE_CACHE "${CMAKE_CURRENT_SOURCE_DIR}/third-party" CACHE STRING "")
endif()

# Make cache variables for installation destinations.
include(GNUInstallDirs)
Expand Down

0 comments on commit dc142e2

Please sign in to comment.