Skip to content

Commit ca358e6

Browse files
dschogitster
authored andcommitted
cmake: use the correct file name for the Perl header
In e4b4880 (Makefile: extract script to massage Perl scripts, 2024-12-06), the code was refactored that is used to transform the Perl scripts/modules to their final form. Even the CMake-based build was adjusted, but the change used the file name `PERL-HEADER` instead of the file name used by the Makefile-based build (same name but with the `GIT-` prefix). Let's adjust the former to the latter. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent df87d53 commit ca358e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/buildsystems/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ list(TRANSFORM perl_modules REPLACE "${CMAKE_SOURCE_DIR}/" "")
867867
file(STRINGS ${CMAKE_SOURCE_DIR}/perl/header_templates/fixed_prefix.template.pl perl_header )
868868
string(REPLACE "@PATHSEP@" ":" perl_header "${perl_header}")
869869
string(REPLACE "@INSTLIBDIR@" "${INSTLIBDIR}" perl_header "${perl_header}")
870-
file(WRITE ${CMAKE_BINARY_DIR}/PERL-HEADER ${perl_header})
870+
file(WRITE ${CMAKE_BINARY_DIR}/GIT-PERL-HEADER ${perl_header})
871871

872872
add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/GIT-VERSION-FILE"
873873
COMMAND "${SH_EXE}" "${CMAKE_SOURCE_DIR}/GIT-VERSION-GEN"
@@ -888,7 +888,7 @@ foreach(script ${git_perl_scripts} ${perl_modules})
888888
COMMAND "${SH_EXE}" "${CMAKE_SOURCE_DIR}/generate-perl.sh"
889889
"${CMAKE_BINARY_DIR}/GIT-BUILD-OPTIONS"
890890
"${CMAKE_BINARY_DIR}/GIT-VERSION-FILE"
891-
"${CMAKE_BINARY_DIR}/PERL-HEADER"
891+
"${CMAKE_BINARY_DIR}/GIT-PERL-HEADER"
892892
"${CMAKE_SOURCE_DIR}/${script}"
893893
"${CMAKE_BINARY_DIR}/${perl_gen_path}"
894894
DEPENDS "${CMAKE_SOURCE_DIR}/generate-perl.sh"

0 commit comments

Comments
 (0)