Skip to content

Commit

Permalink
[test-suite, CUDA] Minor fixes for libstdc++ detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem-B committed Jun 18, 2020
1 parent 7fb25f0 commit 2342d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions External/CUDA/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ set(SUPPORTED_GPU_CUDA_11_0 ${SUPPORTED_GPU_CUDA_10_2}
# Output:
# Sets Var=x.y.z
macro(get_version Var Path)
string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" ${Var} ${Path})
string(REGEX MATCH "[0-9]+(\\.[0-9]+)*" ${Var} ${Path})
endmacro (get_version)

# Helper function to glob CUDA source files and set LANGUAGE property
Expand Down Expand Up @@ -252,7 +252,7 @@ macro(create_cuda_tests)
message(STATUS "Found libstdc++ ${GccVersion}")
add_library(libstdcxx-${GccVersion} SHARED IMPORTED)
set_property(TARGET libstdcxx-${GccVersion} PROPERTY IMPORTED_LOCATION
${GccDir}/lib64/libstdc++.so)
${_path_to_libstdcxx})
list(APPEND GCC_PATHS ${GccDir})
break()
endif()
Expand Down

0 comments on commit 2342d78

Please sign in to comment.