Move rocm include directory to the end of the list for include files

Fix compile error.

Before this change, there is compile error in my build computer. The cause is that /opt/rocm/include has an older version of CL header files.
When compiling, we should use header files from this opencl source code folders first.

This fix changes the order of include directories. Search the header files inside this opencl source code folders first.

Change-Id: I3420a634ed9e1b38b8e5201a0a39a36d61f97986
이 커밋은 다음에 포함됨:
Alex Xie가 2020-05-22 11:57:34 -04:00를 커밋했습니다
1 부모 aa0c163066
커밋 a400051d3a
1 파일이 변경됨
+4 -1
+4 -1
파일 보기
@@ -39,7 +39,6 @@ if(USE_COMGR_LIBRARY)
)
MESSAGE(STATUS "Code Object Manager found at ${amd_comgr_DIR}.")
include_directories("$<TARGET_PROPERTY:amd_comgr,INTERFACE_INCLUDE_DIRECTORIES>")
endif()
@@ -70,6 +69,10 @@ add_subdirectory(amdocl)
add_subdirectory(tools/clinfo)
add_subdirectory(tools/cltrace)
if(USE_COMGR_LIBRARY)
include_directories("$<TARGET_PROPERTY:amd_comgr,INTERFACE_INCLUDE_DIRECTORIES>")
endif()
# get date information based on UTC
# use the last two digits of year + week number + day in the week as OPENCL_VERSION_GITDATE
# use the commit date, instead of build date