File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11thrust_update_system_found_flags ()
22
3+ set (extra_cmake_flags)
4+
5+ # Need to pass these when testing NVC++.
6+ if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID} " )
7+ set (extra_cmake_flags
8+ -D "CMAKE_CUDA_COMPILER_ID=${CMAKE_CUDA_COMPILER_ID} "
9+ -D "CMAKE_CUDA_COMPILER_FORCED=${CMAKE_CUDA_COMPILER_FORCED} "
10+ )
11+ endif ()
12+
313if (THRUST_CPP_FOUND AND THRUST_CUDA_FOUND)
414 # Do a basic check of the cmake/ThrustAddSubdir.cmake mechanism:
515 add_test (
@@ -13,5 +23,6 @@ if (THRUST_CPP_FOUND AND THRUST_CUDA_FOUND)
1323 -D "CMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} "
1424 -D "CMAKE_CUDA_COMPILER=${CMAKE_CUDA_COMPILER} "
1525 -D "CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} "
26+ ${extra_cmake_flags}
1627 )
1728endif ()
Original file line number Diff line number Diff line change 11thrust_update_system_found_flags ()
22
3+ set (extra_cmake_flags)
4+
5+ # Need to pass these when testing NVC++.
6+ if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID} " )
7+ set (extra_cmake_flags
8+ -D "CMAKE_CUDA_COMPILER_ID=${CMAKE_CUDA_COMPILER_ID} "
9+ -D "CMAKE_CUDA_COMPILER_FORCED=${CMAKE_CUDA_COMPILER_FORCED} "
10+ )
11+ endif ()
12+
313if (THRUST_CPP_FOUND AND THRUST_CUDA_FOUND)
414 # Test that we can use `find_package` on an installed Thrust:
515 add_test (
@@ -13,5 +23,6 @@ if (THRUST_CPP_FOUND AND THRUST_CUDA_FOUND)
1323 -D "CMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} "
1424 -D "CMAKE_CUDA_COMPILER=${CMAKE_CUDA_COMPILER} "
1525 -D "CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} "
26+ ${extra_cmake_flags}
1627 )
1728endif ()
You can’t perform that action at this time.
0 commit comments