Cmake build: Check for perl before use

(Define PERL_EXCUTABLE to be used while calling perl scripts)
This commit is contained in:
Kornel Benko 2020-11-14 00:34:20 +01:00
parent 03a8208dc5
commit 5680a4d3be
2 changed files with 4 additions and 3 deletions

View File

@ -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()

View File

@ -4,10 +4,7 @@
# Copyright (c) 2013 Kornel Benko <kornel@lyx.org>
# (c) 2013 Scott Kostyshak <skotysh@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}")