directed tests: Show HIP build errors during configure stage

Change-Id: I068b668902cf54286ce5bb4c6c718b643bfa5754


[ROCm/clr commit: f9ecb8d67e]
This commit is contained in:
Maneesh Gupta
2016-09-09 11:01:10 +05:30
والد a482dd2ae0
کامیت f74dcb94bd
@@ -48,10 +48,11 @@ if(NOT DEFINED HIP_PATH)
COMMAND "${CMAKE_COMMAND}" --build . --target install
WORKING_DIRECTORY hip
RESULT_VARIABLE hip_build_result
OUTPUT_QUIET
OUTPUT_VARIABLE hip_build_log
ERROR_QUIET
)
if(hip_build_result)
message(${hip_build_log})
message(FATAL_ERROR "Error building HIP")
else()
# Building HIP is successful. Point HIP_PATH to this location.