From 07595d79379c616a001cb36a7c817c9c38a0c5b7 Mon Sep 17 00:00:00 2001 From: Kiriti Gowda Date: Fri, 15 Dec 2023 12:44:58 -0800 Subject: [PATCH] Sample - Update CMakeLists.txt (#144) Find rocDecode Fix --- samples/videoDecode/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/videoDecode/CMakeLists.txt b/samples/videoDecode/CMakeLists.txt index 7e1bf62a2e..955bf53509 100644 --- a/samples/videoDecode/CMakeLists.txt +++ b/samples/videoDecode/CMakeLists.txt @@ -59,8 +59,8 @@ set(AMDGPU_TARGETS "${DEFAULT_AMDGPU_TARGETS}" CACHE STRING "List of specific ma find_package(HIP QUIET) find_package(FFmpeg QUIET) # find rocDecode -find_library(ROCDECODE_LIBRARY NAMES rocdecode HINTS {ROCM_PATH}/lib) -find_path(ROCDECODE_INCLUDE_DIR NAMES rocdecode.h PATHS /opt/rocm/include/rocdecode {ROCM_PATH}/include/rocdecode) +find_library(ROCDECODE_LIBRARY NAMES rocdecode HINTS ${ROCM_PATH}/lib) +find_path(ROCDECODE_INCLUDE_DIR NAMES rocdecode.h PATHS /opt/rocm/include/rocdecode ${ROCM_PATH}/include/rocdecode) if(ROCDECODE_LIBRARY AND ROCDECODE_INCLUDE_DIR) set(ROCDECODE_FOUND TRUE) @@ -93,4 +93,4 @@ else() if (NOT ROCDECODE_FOUND) message(FATAL_ERROR "-- ERROR!: rocDecode Not Found! - please install rocDecode!") endif() -endif() \ No newline at end of file +endif()