aboutsummaryrefslogtreecommitdiffstats
path: root/devel/thrust/files/patch-CMakeLists.txt
blob: fe9aae6b6ed3c8021e1eb15b67b3079cc9454d25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- 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