Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit eebcb97

Browse files
committed
[test-suite, CUDA] Only consider the end of path as the version
Otherwise cmake trips on /some/path-0/cuda-1.2 and picks '0' as the version.
1 parent 2342d78 commit eebcb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

External/CUDA/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ set(SUPPORTED_GPU_CUDA_11_0 ${SUPPORTED_GPU_CUDA_10_2}
3636
# Output:
3737
# Sets Var=x.y.z
3838
macro(get_version Var Path)
39-
string(REGEX MATCH "[0-9]+(\\.[0-9]+)*" ${Var} ${Path})
39+
string(REGEX MATCH "[0-9]+(\\.[0-9]+)*$" ${Var} ${Path})
4040
endmacro (get_version)
4141

4242
# Helper function to glob CUDA source files and set LANGUAGE property

0 commit comments

Comments
 (0)