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()