diff --git a/cmake/FetchModernGPU.cmake b/cmake/FetchModernGPU.cmake index 3da43b16..c1b0642c 100644 --- a/cmake/FetchModernGPU.cmake +++ b/cmake/FetchModernGPU.cmake @@ -1,10 +1,17 @@ include(FetchContent) + + +set(FETCHCONTENT_QUIET off) +get_filename_component(fc_base "../_cmake_fetch" + REALPATH BASE_DIR "${CMAKE_BINARY_DIR}") +set(FETCHCONTENT_BASE_DIR ${fc_base}) + +set(FETCHCONTENT_QUIET off) FetchContent_Declare( moderngpu GIT_REPOSITORY https://github.com/moderngpu/moderngpu.git # tag at master branch: GIT_TAG 2b3985541c8e88a133769598c406c33ddde9d0a5 - ) FetchContent_GetProperties(moderngpu) @@ -13,4 +20,4 @@ if(NOT moderngpu_POPULATED) moderngpu ) endif() -set(MODERNGPU_INCLUDE_DIR "${moderngpu_SOURCE_DIR}/src") \ No newline at end of file +set(MODERNGPU_INCLUDE_DIR "${moderngpu_SOURCE_DIR}/src") diff --git a/cmake/FetchRapidJSON.cmake b/cmake/FetchRapidJSON.cmake index 87e7878b..098cd6c4 100644 --- a/cmake/FetchRapidJSON.cmake +++ b/cmake/FetchRapidJSON.cmake @@ -1,4 +1,10 @@ include(FetchContent) + +set(FETCHCONTENT_QUIET off) +get_filename_component(fc_base "../_cmake_fetch" + REALPATH BASE_DIR "${CMAKE_BINARY_DIR}") +set(FETCHCONTENT_BASE_DIR ${fc_base}) + FetchContent_Declare( rapidjson GIT_REPOSITORY https://github.com/Tencent/rapidjson.git @@ -11,4 +17,4 @@ if(NOT rapidjson_POPULATED) rapidjson ) endif() -set(RAPIDJSON_INCLUDE_DIR "${rapidjson_SOURCE_DIR}/include") \ No newline at end of file +set(RAPIDJSON_INCLUDE_DIR "${rapidjson_SOURCE_DIR}/include") diff --git a/cmake/FetchThrustCUB.cmake b/cmake/FetchThrustCUB.cmake index 8677f9fd..23a57b20 100644 --- a/cmake/FetchThrustCUB.cmake +++ b/cmake/FetchThrustCUB.cmake @@ -1,4 +1,11 @@ include(FetchContent) + + +set(FETCHCONTENT_QUIET off) +get_filename_component(fc_base "../_cmake_fetch" + REALPATH BASE_DIR "${CMAKE_BINARY_DIR}") +set(FETCHCONTENT_BASE_DIR ${fc_base}) + FetchContent_Declare( thrust GIT_REPOSITORY https://github.com/thrust/thrust.git @@ -12,4 +19,4 @@ if(NOT thrust_POPULATED) ) endif() set(THRUST_INCLUDE_DIR "${thrust_SOURCE_DIR}") -set(CUB_INCLUDE_DIR "${thrust_SOURCE_DIR}/cub") \ No newline at end of file +set(CUB_INCLUDE_DIR "${thrust_SOURCE_DIR}/cub")