Make CMakeFile fixes to align with rocDecode and rocJpeg changes (#281)

[ROCm/rocprofiler-systems commit: be06384250]
This commit is contained in:
Sajina PK authored and GitHub committed 2025-07-14 19:23:19 -04:00
1 förälder 20434af022
incheckning 1892bdef83
2 files changed
+12 -12

No files matched your search

@@ -54,8 +54,8 @@ function(videodecode_message _MSG_TYPE)
endfunction()
# Find RocDecode
find_package(ROCDECODE QUIET)
if(NOT ROCDECODE_FOUND)
find_package(rocdecode QUIET)
if(NOT rocdecode_FOUND)
videodecode_message(AUTHOR_WARNING "${PROJECT_NAME} skipped. Missing RocDecode...")
return()
endif()
@@ -102,7 +102,7 @@ set(FFMPEG_INCLUDE_DIRS ${FFMPEG_INCLUDE_DIR})
mark_as_advanced(FFMPEG_INCLUDE_DIR AVCODEC_LIBRARY AVFORMAT_LIBRARY AVUTIL_LIBRARY)
if(FFMPEG_FOUND AND ROCDECODE_FOUND)
if(FFMPEG_FOUND AND rocdecode_FOUND)
# HIP
set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} hip::host)
@@ -116,8 +116,8 @@ if(FFMPEG_FOUND AND ROCDECODE_FOUND)
endif()
# rocDecode
include_directories(${ROCDECODE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/..)
set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} ${ROCDECODE_LIBRARY})
include_directories(${rocdecode_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/..)
set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} rocdecode::rocdecode)
# Threads
set(THREADS_PREFER_PTHREAD_FLAG ON)
@@ -155,7 +155,7 @@ else()
if(NOT FFMPEG_FOUND)
message(WARNING "-- ERROR!: FFMPEG Not Found! - please install FFMPEG!")
endif()
if(NOT ROCDECODE_FOUND)
if(NOT rocdecode_FOUND)
message(WARNING "-- ERROR!: rocDecode Not Found! - please install rocDecode!")
endif()
endif()