Bugfixes for cmake
MODIFY
cmake/Dependencies.cmake
cmake/Dependencies.cmake
@@ -66,6 +66,7 @@ if(BUILD_TEST)
endif()
endif()
+if (WIN32)
find_package(ROCM QUIET CONFIG PATHS /opt/rocm)
if(NOT ROCM_FOUND)
set(rocm_cmake_tag "master" CACHE STRING "rocm-cmake tag to download")
@@ -93,11 +94,6 @@ if(NOT ROCM_FOUND)
endif()
find_package(ROCM REQUIRED CONFIG PATHS ${CMAKE_CURRENT_BINARY_DIR}/rocm-cmake-${rocm_cmake_tag})
endif()
-
-# rocm-cmake contains common cmake code for rocm projects to help
-# setup and install
-if (WIN32)
- find_package( ROCM CONFIG )
else()
# Find or download/install rocm-cmake project
find_package(ROCM 0.6 QUIET CONFIG PATHS /opt/rocm)
@@ -121,6 +117,8 @@ else()
endif()
endif()
+# rocm-cmake contains common cmake code for rocm projects to help
+# setup and install
include( ROCMSetupVersion )
include( ROCMCreatePackage )
include( ROCMInstallTargets )

MODIFY
test/CMakeLists.txt
test/CMakeLists.txt
@@ -72,7 +72,6 @@ function(add_rocthrust_test TEST)
if (WIN32 AND NOT DEFINED DLLS_COPIED)
set(DLLS_COPIED "YES")
set(DLLS_COPIED ${DLLS_COPIED} PARENT_SCOPE)
- message(STATUS "copying dlls")
# for now adding in all .dll as dependency chain is not cmake based on win32
file( GLOB third_party_dlls
LIST_DIRECTORIES ON

Bugfixes for cmake