@@ -111,12 +111,9 @@ endif(BUILD_EXAMPLES)
111111###################################################################################################
112112# - Install targets -------------------------------------------------------------------------------
113113
114- if (INSTALL_CUCO)
115- install (TARGETS cuco EXPORT cuco-exports)
116- install (DIRECTORY include/cuco/ DESTINATION include/cuco)
117- install (FILES ${CUCO_BINARY_DIR } /include/cuco/version_config.hpp DESTINATION include/cuco)
114+ install (TARGETS cuco EXPORT cuco-exports)
118115
119- set (doc_string
116+ set (doc_string
120117 [=[
121118Provide targets for cuCollections.
122119
@@ -131,27 +128,30 @@ structures tailored for efficient use with GPUs.
131128
132129]=] )
133130
134- # build install targets
135- rapids_export (
136- INSTALL cuco
137- EXPORT_SET cuco-exports
138- GLOBAL_TARGETS cuco
139- NAMESPACE cuco::
140- DOCUMENTATION doc_string )
141-
142- set (code_string
143- [=[
131+ set (code_string
132+ [=[
144133if(NOT TARGET cuco::Thrust)
145- thrust_create_target(cuco::Thrust FROM_OPTIONS)
134+ thrust_create_target(cuco::Thrust FROM_OPTIONS)
146135endif()
147136]=] )
148137
149- # build export targets
138+ # build directory cuco-config generation
139+ rapids_export (
140+ BUILD cuco
141+ EXPORT_SET cuco-exports
142+ GLOBAL_TARGETS cuco
143+ NAMESPACE cuco::
144+ DOCUMENTATION doc_string
145+ FINAL_CODE_BLOCK code_string )
146+
147+ if (INSTALL_CUCO)
148+ install (DIRECTORY include/cuco/ DESTINATION include/cuco)
149+ install (FILES ${CUCO_BINARY_DIR } /include/cuco/version_config.hpp DESTINATION include/cuco)
150+ # install directory cuco-config generation
150151 rapids_export (
151- BUILD cuco
152+ INSTALL cuco
152153 EXPORT_SET cuco-exports
153154 GLOBAL_TARGETS cuco
154155 NAMESPACE cuco::
155- DOCUMENTATION doc_string
156- FINAL_CODE_BLOCK code_string )
156+ DOCUMENTATION doc_string )
157157endif ()
0 commit comments