Skip to content

Commit

Permalink
Ensure proper working dir when processing rpmrc, platform and macros
Browse files Browse the repository at this point in the history
Fixes `cmake --install` failing on these files as the working directory
is "unexpected" from the trad. makefile POV.

Reported-by: Tomasz Kłoczko <[email protected]>
  • Loading branch information
pmatilai committed Oct 6, 2023
1 parent 5079c05 commit f410403
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ function(makemacros)
${CMAKE_COMMAND} -E env pkglibdir=${RPM_CONFIGDIR}
${CMAKE_SOURCE_DIR}/installplatform
rpmrc platform macros
${RPMCANONVENDOR} ${RPMCANONOS} ${RPMCANONGNU})"
${RPMCANONVENDOR} ${RPMCANONOS} ${RPMCANONGNU}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})"
)
endfunction()

Expand Down

0 comments on commit f410403

Please sign in to comment.