Skip to content

Commit 13ceadd

Browse files
committed
[hipcc] Define Debian doc source path relative to utils.cmake
Using ${CMAKE_SOURCE_DIR}/DEBIAN for the directory in which amd/hipcc/utils.cmake expects e.g. copyright.in can break in some situations if hipcc is build with llvm as an external project because the path evaluates to llvm/DEBIAN instead of amd/hipcc/DEBIAN. Define the path relative to the utils.cmake path.
1 parent a9c2a06 commit 13ceadd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

amd/hipcc/utils.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ function( configure_pkg PACKAGE_NAME_T COMPONENT_NAME_T PACKAGE_VERSION_T MAINTA
77
set_debian_pkg_cmake_flags( ${PACKAGE_NAME_T} ${PACKAGE_VERSION_T}
88
${MAINTAINER_NM_T} ${MAINTAINER_EMAIL_T} )
99

10+
set(DEB_SOURCE_DIR "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/DEBIAN")
1011
# Create debian directory in build tree
1112
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/DEBIAN")
1213

1314
# Configure the copyright file
1415
configure_file(
15-
"${CMAKE_SOURCE_DIR}/DEBIAN/copyright.in"
1616
"${CMAKE_BINARY_DIR}/DEBIAN/copyright"
17+
"${DEB_SOURCE_DIR}/copyright.in"
1718
@ONLY
1819
)
1920

@@ -24,8 +25,8 @@ function( configure_pkg PACKAGE_NAME_T COMPONENT_NAME_T PACKAGE_VERSION_T MAINTA
2425

2526
# Configure the changelog file
2627
configure_file(
27-
"${CMAKE_SOURCE_DIR}/DEBIAN/changelog.in"
2828
"${CMAKE_BINARY_DIR}/DEBIAN/changelog.Debian"
29+
"${DEB_SOURCE_DIR}/changelog.in"
2930
@ONLY
3031
)
3132

0 commit comments

Comments
 (0)