Don't write generated version.h to source directory
Change-Id: Ib4e7c3171cd227725ae35fed66167df528a4c431
[ROCm/clr commit: 72675bf079]
This commit is contained in:
zatwierdzone przez
Matthew Arsenault
rodzic
1c669b3028
commit
38a8ebcb18
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user