From 5680a4d3be0033ae7d11ffcef3c85f2b010eaa3f Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sat, 14 Nov 2020 00:34:20 +0100 Subject: [PATCH] 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 5d97200ba3..c9bde3e19c 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 3125c86550..02fdc95757 100644 --- a/development/checkurls/CMakeLists.txt +++ b/development/checkurls/CMakeLists.txt @@ -4,10 +4,7 @@ # Copyright (c) 2013 Kornel Benko # (c) 2013 Scott Kostyshak # -# 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}")