-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring CMake fails #1371
Comments
stdexec doesn't use i have never seen this error, but then again i don't typically build stdexec as a dependency. i'll see if i can repro when i have a chance. |
I am finding the bug to be intermittent. Two observations when this error occurs:
|
I avoided this error by not using CPM in my project: function (fetch_stdexec)
set(branch_or_tag "main")
set(url "https://github.com/NVIDIA/stdexec.git")
set(target_folder "${CMAKE_BINARY_DIR}/_deps/stdexec-src")
if (NOT EXISTS ${target_folder})
execute_process(
COMMAND git clone --depth 1 --branch "${branch_or_tag}" --recursive "${url}" "${target_folder}"
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
RESULT_VARIABLE exec_process_result
OUTPUT_VARIABLE exec_process_output
)
if(NOT exec_process_result EQUAL "0")
message(FATAL_ERROR "Git clone failed: ${exec_process_output}")
else()
message(STATUS "Git clone succeeded: ${exec_process_output}")
endif()
endif()
set(stdexec_SOURCE_DIR ${target_folder} CACHE INTERNAL "stdexec source folder" FORCE)
set(stdexec_INCLUDE_DIR ${target_folder}/include CACHE INTERNAL "stdexec include folder" FORCE)
#[[ Switched from using:
include(FetchContent)
FetchContent_Declare(
stdexec
GIT_REPOSITORY https://github.com/NVIDIA/stdexec.git
GIT_TAG main
GIT_SHALLOW TRUE
)
set(STDEXEC_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(stdexec)
#]]
endfunction() |
This oneliner reproduces the issue:
My pull request here attempts to resolve it: #1380 |
Configuring CMake with stdexec as a dependency works the first time entirely from scratch (on Mac/Windows). However, subsequent calls to CMake will produce the following error:
Deleting the cache seems to work, except on Linux which seems to have this problem more persistently.
We're configuring with STD_BUILD_TESTS turned off.
The text was updated successfully, but these errors were encountered: