We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd921c commit 084e1aeCopy full SHA for 084e1ae
CMakeLists.txt
@@ -621,10 +621,11 @@ endfunction()
621
#-----------------------------------------------
622
623
find_program(style_pl style.pl "${CMAKE_SOURCE_DIR}/developer-scripts/")
624
+find_package(Perl)
625
function(check_script_style script_full_path)
- if(style_pl)
626
+ if(style_pl AND PERL_FOUND)
627
add_test(NAME "style:${script_full_path}"
- COMMAND "${style_pl}" "${script_full_path}")
628
+ COMMAND "${PERL_EXECUTABLE}" "${style_pl}" "${script_full_path}")
629
endif()
630
endfunction()
631
0 commit comments