update install rules to install cmake into lib
MODIFY
thrust/cmake/thrust-config-version.cmake
thrust/cmake/thrust-config-version.cmake
# Parse version information from version.h:
-file(READ "${CMAKE_CURRENT_LIST_DIR}/../version.h" THRUST_VERSION_HEADER)
+file(READ "${CMAKE_CURRENT_LIST_DIR}/../../../include/thrust/version.h" THRUST_VERSION_HEADER)
string(REGEX MATCH "#define[ \t]+THRUST_VERSION[ \t]+([0-9]+)" DUMMY "${THRUST_VERSION_HEADER}")
set(THRUST_VERSION_FLAT ${CMAKE_MATCH_1})
# Note that Thrust calls this the PATCH number, CMake calls it the TWEAK number:

MODIFY
thrust/cmake/thrust-config.cmake
thrust/cmake/thrust-config.cmake
@@ -625,7 +625,7 @@ set(_THRUST_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "Location of th
if (NOT TARGET Thrust::Thrust)
_thrust_declare_interface_alias(Thrust::Thrust _Thrust_Thrust)
# Strip out the 'thrust/cmake/' from '[thrust_include_path]/thrust/cmake/':
- get_filename_component(_THRUST_INCLUDE_DIR "../.." ABSOLUTE BASE_DIR "${_THRUST_CMAKE_DIR}")
+ get_filename_component(_THRUST_INCLUDE_DIR "../../../include" ABSOLUTE BASE_DIR "${_THRUST_CMAKE_DIR}")
set(_THRUST_INCLUDE_DIR "${_THRUST_INCLUDE_DIR}"
CACHE INTERNAL "Location of thrust headers."
)

update install rules to install cmake into lib