diff --git a/projects/clr/hipamd/.gitignore b/projects/clr/hipamd/.gitignore index 64cdd493a6..fe07943cad 100644 --- a/projects/clr/hipamd/.gitignore +++ b/projects/clr/hipamd/.gitignore @@ -10,7 +10,6 @@ bin/hipInfo bin/hipBusBandwidth bin/hipDispatchLatency bin/hipify-clang -include/hip/hip_version.h tags samples/1_Utils/hipInfo/hipInfo samples/1_Utils/hipBusBandwidth/hipBusBandwidth diff --git a/projects/clr/hipamd/CMakeLists.txt b/projects/clr/hipamd/CMakeLists.txt index fdf019b9da..5c1c906d28 100755 --- a/projects/clr/hipamd/CMakeLists.txt +++ b/projects/clr/hipamd/CMakeLists.txt @@ -425,7 +425,8 @@ set(_versionInfoHeader #define HIP_VERSION (HIP_VERSION_MAJOR * 100 + HIP_VERSION_MINOR)\n #endif\n ") -file(WRITE "${CMAKE_CURRENT_SOURCE_DIR}/include/hip/hip_version.h" ${_versionInfoHeader}) +file(WRITE "${PROJECT_BINARY_DIR}/include/hip/hip_version.h" ${_versionInfoHeader}) +include_directories(${PROJECT_BINARY_DIR}/include) # Build doxygen documentation find_program(DOXYGEN_EXE doxygen) @@ -468,7 +469,9 @@ endif() install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/hip/hcc_detail DESTINATION include/hip FILES_MATCHING PATTERN "*.h*") - +install(DIRECTORY ${PROJECT_BINARY_DIR}/include/hip + DESTINATION include + FILES_MATCHING PATTERN "*.h*") ############################# # hip-config