commit 5680a4d3be0033ae7d11ffcef3c85f2b010eaa3f Author: Kornel Benko <kor...@lyx.org> Date: Sat Nov 14 00:34:20 2020 +0100
Cmake build: Check for perl before use (Define PERL_EXCUTABLE to be used while calling perl scripts) --- CMakeLists.txt | 4 ++++ development/checkurls/CMakeLists.txt | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d97200..c9bde3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1211,6 +1211,10 @@ include(../Install) # By running the URL tests first, time can be saved when running the ctests in # parallel since the URL tests take a long time to run (e.g. 10 minutes). + +# Needed, because of perl scripts in checkurls autotests and batchtests +find_package(Perl REQUIRED) + if(LYX_ENABLE_URLTESTS) add_subdirectory(development/checkurls "${TOP_BINARY_DIR}/checkurls") endif() diff --git a/development/checkurls/CMakeLists.txt b/development/checkurls/CMakeLists.txt index 3125c86..02fdc95 100644 --- a/development/checkurls/CMakeLists.txt +++ b/development/checkurls/CMakeLists.txt @@ -4,10 +4,7 @@ # Copyright (c) 2013 Kornel Benko <kor...@lyx.org> # (c) 2013 Scott Kostyshak <skot...@lyx.org> # -# Needed, because of perl scripts here -find_package(Perl REQUIRED) -# create file the lyx-files-list set(TOP_SEARCH_PATH "${TOP_SRC_DIR}") set(LYXFILES_FILE "${CMAKE_CURRENT_BINARY_DIR}/filesToScan") file(WRITE "${LYXFILES_FILE}") -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs