ports/devel/thrust/files/patch-CMakeLists.txt
Yuri Victorovich 2392fd13a6 devel/thrust: Move include files under include/
PR:		265398
Reported by:	Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
2022-07-22 23:48:16 -07:00

32 lines
1 KiB
Text

--- CMakeLists.txt.orig 2019-03-25 17:40:02 UTC
+++ CMakeLists.txt
@@ -341,8 +341,8 @@ cuda_include_directories(${CMAKE_SOURCE_DIR})
# Add targets
# thrust target
-install(DIRECTORY ${CMAKE_SOURCE_DIR}/thrust/ DESTINATION thrust COMPONENT thrust)
-install(FILES ${CMAKE_SOURCE_DIR}/CHANGELOG DESTINATION thrust COMPONENT thrust)
+install(DIRECTORY ${CMAKE_SOURCE_DIR}/thrust/ DESTINATION include/thrust COMPONENT thrust)
+#install(FILES ${CMAKE_SOURCE_DIR}/CHANGELOG DESTINATION thrust COMPONENT thrust)
add_custom_target(install-thrust
COMMAND
"${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=thrust
@@ -350,9 +350,15 @@ add_custom_target(install-thrust
)
# add examples, testing and performance testing targets
-add_subdirectory(examples)
-add_subdirectory(testing)
-add_subdirectory(performance)
+if (ENABLE_EXAMPLES)
+ add_subdirectory(examples)
+endif()
+if (ENABLE_TESTING)
+ add_subdirectory(testing)
+endif()
+if (ENABLE_PERFORMANCE)
+ add_subdirectory(performance)
+endif()
### make zip acrhive