Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/Findthrust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ if(thrust_FOUND)

add_library(thrust::thrust INTERFACE IMPORTED)
set_target_properties(thrust::thrust PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${THRUST_INCLUDE_DIRS}")
target_compile_options(thrust::thrust INTERFACE $<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/Zc:preprocessor>)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
target_compile_options(thrust::thrust INTERFACE $<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/Zc:preprocessor>)
if(THRUST_VERSION VERSION_GREATER_EQUAL "3.2.0")
target_compile_options(thrust::thrust INTERFACE $<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/Zc:preprocessor>)
endif()


mark_as_advanced(THRUST_INCLUDE_DIR
THRUST_INCLUDE_DIR_VARS
Expand Down