FATAL_ERRROR if Profiling API header not found
[ROCm/clr commit: c37c1288db]
This commit is contained in:
@@ -160,11 +160,11 @@ endif ()
|
||||
find_path(PROF_API_HEADER_DIR NAMES prof_protocol.h PATHS ${PROF_API_HEADER_PATH} NO_DEFAULT_PATH)
|
||||
if(NOT PROF_API_HEADER_DIR)
|
||||
MESSAGE("PROF_API_HEADER_PATH = ${PROF_API_HEADER_PATH}")
|
||||
MESSAGE("Profiling API header not found, use -DPROF_API_HEADER_PATH=<path to prof_protocol.h header>")
|
||||
MESSAGE(FATAL_ERROR "Profiling API header not found, use -DPROF_API_HEADER_PATH=<path to prof_protocol.h header>")
|
||||
else()
|
||||
add_definitions(-DUSE_PROF_API=1)
|
||||
include_directories ( ${PROF_API_HEADER_DIR} )
|
||||
MESSAGE("PROF_API_HEADER_DIR = ${PROF_API_HEADER_DIR}")
|
||||
MESSAGE(STATUS "Profiling API: ${PROF_API_HEADER_DIR}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user