From ee42f84c7751a20085d351a5b2c9a8fea0bd7fd5 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Thu, 19 May 2011 07:48:41 +0000 Subject: [PATCH] Gracefuly omit doc creation if no perl detected git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38788 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/cmake/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/development/cmake/CMakeLists.txt b/development/cmake/CMakeLists.txt index 7664f8caae..790c5d81be 100644 --- a/development/cmake/CMakeLists.txt +++ b/development/cmake/CMakeLists.txt @@ -490,10 +490,11 @@ add_subdirectory(scripts) if(LYX_INSTALL) FIND_PROGRAM(LYX_PERL_EXECUTABLE perl) if(${LYX_PERL_EXECUTABLE} MATCHES "-NOTFOUND") - message(FATAL_ERROR "Perl required!") + message(STATUS "Perl required to create doc!") + else() + add_subdirectory(man) + add_subdirectory(doc) endif() - add_subdirectory(man) - add_subdirectory(doc) include(../Install) endif()