File tree 1 file changed +0
-21
lines changed
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -41,24 +41,3 @@ set ( CUB_ENABLE_HEADER_TESTING OFF CACHE BOOL "Disable CUB header testing" )
41
41
42
42
# Get it into the current directory.
43
43
FetchContent_MakeAvailable( CCCL )
44
-
45
- # Check if <thrust/pair.h> works out of the box.
46
- include ( CheckCXXSourceCompiles )
47
- set ( CMAKE_REQUIRED_INCLUDES
48
- "${CCCL_SOURCE_DIR} /thrust"
49
- "${CCCL_SOURCE_DIR} /libcudacxx/include" )
50
- set ( _THRUST_TEST_SOURCE "#include <thrust/pair.h>\n int main() { return 0; }" )
51
- check_cxx_source_compiles( "${_THRUST_TEST_SOURCE} " TRACCC_THRUST_WORKS )
52
- # If not, check if the _LIBCUDACXX_STRING_H_HAS_CONST_OVERLOADS flag makes it
53
- # work.
54
- if ( NOT TRACCC_THRUST_WORKS )
55
- set ( CMAKE_REQUIRED_DEFINITIONS -D_LIBCUDACXX_STRING_H_HAS_CONST_OVERLOADS )
56
- check_cxx_source_compiles( "${_THRUST_TEST_SOURCE} "
57
- TRACCC_THRUST_WORKS_WITH_PATCH )
58
- if ( TRACCC_THRUST_WORKS_WITH_PATCH )
59
- target_compile_definitions ( _Thrust_Thrust
60
- INTERFACE _LIBCUDACXX_STRING_H_HAS_CONST_OVERLOADS )
61
- else ()
62
- message ( WARNING "Thrust does not seem to work. The build may fail." )
63
- endif ()
64
- endif ()
You can’t perform that action at this time.
0 commit comments