diff options
author | Raul Tambre <raul@tambre.ee> | 2020-03-27 19:31:52 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2020-05-15 15:12:39 (GMT) |
commit | a653ca9504569eb45077ee598945b18a3c9e4ee8 (patch) | |
tree | 9e2753a976a8b43a0cc06587dcc62bb0f3008c84 /Tests/RunCMake/NinjaMultiConfig | |
parent | 5df21adf46be14061fe0e8ea53213d905e834600 (diff) | |
download | CMake-a653ca9504569eb45077ee598945b18a3c9e4ee8.zip CMake-a653ca9504569eb45077ee598945b18a3c9e4ee8.tar.gz CMake-a653ca9504569eb45077ee598945b18a3c9e4ee8.tar.bz2 |
Tests: Update CUDA tests to work with Clang
Diffstat (limited to 'Tests/RunCMake/NinjaMultiConfig')
-rw-r--r-- | Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake b/Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake index 6472f46..449db4a 100644 --- a/Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake +++ b/Tests/RunCMake/NinjaMultiConfig/RunCMakeTest.cmake @@ -285,7 +285,8 @@ run_cmake_command(NoUnusedVariables ${CMAKE_COMMAND} ${CMAKE_CURRENT_LIST_DIR} "-DCMAKE_DEFAULT_CONFIGS=all" ) -if(CMake_TEST_CUDA) +# CudaSimple uses separable compilation, which is currently only supported on NVCC. +if(CMake_TEST_CUDA AND CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA") set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/CudaSimple-build) run_cmake_configure(CudaSimple) include(${RunCMake_TEST_BINARY_DIR}/target_files.cmake) |