diff --git a/projects/clr/opencl/CMakeLists.txt b/projects/clr/opencl/CMakeLists.txt index 4c7da46bb3..e7fcf17fa0 100644 --- a/projects/clr/opencl/CMakeLists.txt +++ b/projects/clr/opencl/CMakeLists.txt @@ -39,7 +39,6 @@ if(USE_COMGR_LIBRARY) ) MESSAGE(STATUS "Code Object Manager found at ${amd_comgr_DIR}.") - include_directories("$") endif() @@ -70,6 +69,10 @@ add_subdirectory(amdocl) add_subdirectory(tools/clinfo) add_subdirectory(tools/cltrace) +if(USE_COMGR_LIBRARY) + 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