[PATCH] D51256: [test-suite, CUDA] Fix some CMake problems
Jonas Hahnfeld via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 28 08:02:43 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL340829: [test-suite, CUDA] Fix some CMake problems (authored by Hahnfeld, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51256?vs=162546&id=162869#toc
Repository:
rL LLVM
https://reviews.llvm.org/D51256
Files:
test-suite/trunk/External/CUDA/CMakeLists.txt
Index: test-suite/trunk/External/CUDA/CMakeLists.txt
===================================================================
--- test-suite/trunk/External/CUDA/CMakeLists.txt
+++ test-suite/trunk/External/CUDA/CMakeLists.txt
@@ -36,7 +36,7 @@
# 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
@@ -180,7 +180,7 @@
create_local_cuda_tests(${VariantSuffix})
add_dependencies(cuda-tests-simple cuda-tests-simple-${VariantSuffix})
- if(EXISTS ${THRUST_PATH} AND (NOT ${Std} STREQUAL "c++14"))
+ if(DEFINED THRUST_PATH AND (NOT ${Std} STREQUAL "c++14"))
create_thrust_tests(${VariantSuffix})
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51256.162869.patch
Type: text/x-patch
Size: 839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180828/d1e3f7cf/attachment.bin>
More information about the llvm-commits
mailing list