Skip to content

Commit 084e1ae

Browse files
committed
Make sure we have perl before trying to run style tests, especially on
windows. Also invoke perl directly so style/linting on windows works.
1 parent abd921c commit 084e1ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,11 @@ endfunction()
621621
#-----------------------------------------------
622622

623623
find_program(style_pl style.pl "${CMAKE_SOURCE_DIR}/developer-scripts/")
624+
find_package(Perl)
624625
function(check_script_style script_full_path)
625-
if(style_pl)
626+
if(style_pl AND PERL_FOUND)
626627
add_test(NAME "style:${script_full_path}"
627-
COMMAND "${style_pl}" "${script_full_path}")
628+
COMMAND "${PERL_EXECUTABLE}" "${style_pl}" "${script_full_path}")
628629
endif()
629630
endfunction()
630631

0 commit comments

Comments
 (0)