vcpkg/ports/stdexec/fix-version.patch

14 lines
729 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 54f6330..8409707 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,7 +51,7 @@ if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/execution.bs)
${CMAKE_CURRENT_BINARY_DIR}/execution.bs)
endif()
file(STRINGS "${CMAKE_CURRENT_BINARY_DIR}/execution.bs" STD_EXECUTION_BS_REVISION_LINE REGEX "Revision: [0-9]+")
-string(REGEX REPLACE "Revision: ([0-9]+)" "\\1" STD_EXECUTION_BS_REVISION ${STD_EXECUTION_BS_REVISION_LINE})
+string(REGEX REPLACE "Revision: ([0-9]+).*" "\\1" STD_EXECUTION_BS_REVISION ${STD_EXECUTION_BS_REVISION_LINE})
# Determine if STDEXEC is built as a subproject (using add_subdirectory) or if it is the main project.
if (NOT DEFINED STDEXEC_MAIN_PROJECT)