From 450a2f254fbf55b33ca87c1e427a5051ed37719c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Halkenh=C3=A4user?= Date: Fri, 12 May 2023 17:52:14 +0200 Subject: [PATCH] Update env.cmake for consistency w/ CMakeLists This NFC will only change the name of an internal variable. `FIND_AQL_PROFILE_LIB` to `AQLPROFILE_LIB` However, this will increase consistency among three files: `./cmake_modules/env.cmake` `./src/api/CMakeLists.txt` `./src/tools/rocprofv2/CMakeLists.txt` Which in turn will enable an externally provided `-DAQLPROFILE_LIB=` to avoid a build termination. --- cmake_modules/env.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake_modules/env.cmake b/cmake_modules/env.cmake index 66475780..250dcd5d 100644 --- a/cmake_modules/env.cmake +++ b/cmake_modules/env.cmake @@ -73,7 +73,7 @@ if ( "${ROCM_ROOT_DIR}" STREQUAL "" ) message ( FATAL_ERROR "ROCM_ROOT_DIR is not found." ) endif () -find_library ( FIND_AQL_PROFILE_LIB "libhsa-amd-aqlprofile64.so" HINTS ${CMAKE_INSTALL_PREFIX} PATHS ${ROCM_ROOT_DIR}) -if ( NOT FIND_AQL_PROFILE_LIB ) +find_library ( AQLPROFILE_LIB "libhsa-amd-aqlprofile64.so" HINTS ${CMAKE_INSTALL_PREFIX} PATHS ${ROCM_ROOT_DIR}) +if ( NOT AQLPROFILE_LIB ) message ( FATAL_ERROR "AQL_PROFILE not installed. Please install AQL_PROFILE" ) endif()