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}")