From 8ceeb8881bc7d86fda203e667f4ee7f24c9ccfa8 Mon Sep 17 00:00:00 2001 From: Lauren Wrubleski Date: Wed, 6 Sep 2023 10:47:25 -0600 Subject: [PATCH] Include dependencies after finding `hip` --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6aa2eddf..7e95d857 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,8 +80,6 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOL "Add paths to linker searc # Set the default value of BUILD_SHARED_LIBS set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared") -# Include cmake scripts -include(cmake/Dependencies.cmake) # Detect compiler support for target ID # This section is deprecated. Please use rocm_check_target_ids for future use. @@ -102,6 +100,9 @@ else() find_package(hip REQUIRED CONFIG PATHS ${HIP_DIR} ${ROCM_PATH}) endif() +# Include cmake scripts +include(cmake/Dependencies.cmake) + # Build option to disable -Werror option(DISABLE_WERROR "Disable building with Werror" ON)