mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
6282335873
commit
d98838430c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue