Use find_package to find rocclr
Maintain compatability with current hardcoded scheme for now for commit order convenience. Change-Id: I0b8299fceab1cc405ae5f26a129f2f1ea3d56773
This commit is contained in:
committed by
Matthew Arsenault
parent
10de80eb17
commit
585741a040
@@ -22,8 +22,21 @@ if(CMAKE_BUILD_TYPE MATCHES "^Debug$")
|
||||
add_definitions(-DDEBUG)
|
||||
endif()
|
||||
|
||||
# FIXME: Use find_package
|
||||
include(${LIBVDI_STATIC_DIR}/amdvdi_staticTargets.cmake)
|
||||
# FIXME: VDI_DIR and LIBVDI_STATIC_DIR are for compatability with
|
||||
# current build scripts. Instead they should install, or use
|
||||
# CMAKE_PREFIX_PATH
|
||||
find_package(ROCclr CONFIG
|
||||
PATHS
|
||||
${VDI_DIR}
|
||||
${LIBVDI_STATIC_DIR})
|
||||
|
||||
if(NOT ROCclr_FOUND)
|
||||
# FIXME: Make ROCclr find required and remove this.
|
||||
#
|
||||
# This is to break the dependency on patch to start producing find
|
||||
# module.
|
||||
include(${LIBVDI_STATIC_DIR}/amdvdi_staticTargets.cmake)
|
||||
endif()
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR})
|
||||
include_directories(${CMAKE_SOURCE_DIR}/khronos)
|
||||
|
||||
Reference in New Issue
Block a user