We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3f8ee7 commit 4997914Copy full SHA for 4997914
CMakeLists.txt
@@ -492,9 +492,12 @@ endfunction()
492
# Setup script style testing & enforcement macro
493
#-----------------------------------------------
494
495
+find_program(style_pl style.pl "${CMAKE_SOURCE_DIR}/developer-scripts/")
496
function(check_script_style script_full_path)
- add_test(NAME "style:${script_full_path}"
497
- COMMAND "${CMAKE_SOURCE_DIR}/developer-scripts/style.pl" "${script_full_path}")
+ if(style_pl)
498
+ add_test(NAME "style:${script_full_path}"
499
+ COMMAND "${style_pl}" "${script_full_path}")
500
+ endif()
501
endfunction()
502
503
#-------------------------------
0 commit comments