Skip to content

Commit 4997914

Browse files
committed
Fix style checking on releases
1 parent c3f8ee7 commit 4997914

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CMakeLists.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,12 @@ endfunction()
492492
# Setup script style testing & enforcement macro
493493
#-----------------------------------------------
494494

495+
find_program(style_pl style.pl "${CMAKE_SOURCE_DIR}/developer-scripts/")
495496
function(check_script_style script_full_path)
496-
add_test(NAME "style:${script_full_path}"
497-
COMMAND "${CMAKE_SOURCE_DIR}/developer-scripts/style.pl" "${script_full_path}")
497+
if(style_pl)
498+
add_test(NAME "style:${script_full_path}"
499+
COMMAND "${style_pl}" "${script_full_path}")
500+
endif()
498501
endfunction()
499502

500503
#-------------------------------

0 commit comments

Comments
 (0)