mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-22 16:07:49 +08:00
cuda: Adapted tests to work with modified cuda toolset
- cuda version is only recognized if it contains no other characters than "0123456789." - cuda path is only tested with dummy value . Otherwise a cuda toolkit must be copied to the integration test machine
This commit is contained in:
@@ -6,12 +6,14 @@ run_cmake(NoToolset)
|
||||
if("${RunCMake_GENERATOR}" MATCHES "Visual Studio 1[012456]")
|
||||
set(RunCMake_GENERATOR_TOOLSET "Test Toolset")
|
||||
run_cmake(TestToolset)
|
||||
set(RunCMake_GENERATOR_TOOLSET "Test Toolset,cuda=Test Cuda")
|
||||
set(RunCMake_GENERATOR_TOOLSET "Test Toolset,cuda=0.0")
|
||||
run_cmake(TestToolsetCudaBoth)
|
||||
set(RunCMake_GENERATOR_TOOLSET ",cuda=Test Cuda")
|
||||
run_cmake(TestToolsetCudaOnly)
|
||||
set(RunCMake_GENERATOR_TOOLSET "cuda=Test Cuda")
|
||||
run_cmake(TestToolsetCudaOnly)
|
||||
set(RunCMake_GENERATOR_TOOLSET ",cuda=0.0")
|
||||
run_cmake(TestToolsetCudaVersionOnly)
|
||||
set(RunCMake_GENERATOR_TOOLSET "cuda=0.0")
|
||||
run_cmake(TestToolsetCudaVersionOnly)
|
||||
set(RunCMake_GENERATOR_TOOLSET "cuda=C:\\dummy\\cuda")
|
||||
run_cmake(TestToolsetCudaPathOnly)
|
||||
if("${RunCMake_GENERATOR}" MATCHES "Visual Studio 1[2456]")
|
||||
set(RunCMake_GENERATOR_TOOLSET "Test Toolset,host=x64")
|
||||
run_cmake(TestToolsetHostArchBoth)
|
||||
|
@@ -1,2 +1,2 @@
|
||||
-- CMAKE_VS_PLATFORM_TOOLSET='Test Toolset'
|
||||
-- CMAKE_VS_PLATFORM_TOOLSET_CUDA='Test Cuda'
|
||||
-- CMAKE_VS_PLATFORM_TOOLSET_CUDA='0.0'
|
||||
|
@@ -0,0 +1 @@
|
||||
1
|
@@ -0,0 +1,12 @@
|
||||
CMake Error at CMakeLists.txt:[0-9]+ \(project\):
|
||||
Generator
|
||||
|
||||
Visual Studio .*
|
||||
|
||||
given toolset
|
||||
|
||||
cuda=C:\\dummy\\cuda\\
|
||||
|
||||
cannot detect Visual Studio integration files in path
|
||||
|
||||
C:/dummy/cuda/CUDAVisualStudioIntegration/extras/visual_studio_integration/MSBuildExtensions
|
@@ -0,0 +1 @@
|
||||
message(FATAL_ERROR "This should not be reached!")
|
@@ -1,2 +1,2 @@
|
||||
-- CMAKE_VS_PLATFORM_TOOLSET='(v[0-9]+|Windows7.1SDK)'
|
||||
-- CMAKE_VS_PLATFORM_TOOLSET_CUDA='Test Cuda'
|
||||
-- CMAKE_VS_PLATFORM_TOOLSET_CUDA='0.0'
|
Reference in New Issue
Block a user