mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix wrong CCache version string (#12679)
Use CMAKE_MATCH_1 instead of CMAKE_MATCH_0 which holds the entire match.
This commit is contained in:
@@ -9,8 +9,9 @@ if (CCache_EXECUTABLE)
|
||||
OUTPUT_VARIABLE CCache_VERSION_OUTPUT
|
||||
)
|
||||
|
||||
string(REGEX MATCH "version ([0-9]+\\.[0-9]+\\.[0-9]+)" CCache_VERSION_TEMP ${CCache_VERSION_OUTPUT})
|
||||
set(CCache_VERSION "${CMAKE_MATCH_0}")
|
||||
if (CCache_VERSION_OUTPUT MATCHES "version ([0-9]+\\.[0-9]+\\.[0-9]+)")
|
||||
set(CCache_VERSION "${CMAKE_MATCH_1}")
|
||||
endif ()
|
||||
endif (CCache_EXECUTABLE)
|
||||
|
||||
find_package_handle_standard_args(CCache
|
||||
|
||||
Reference in New Issue
Block a user