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
This commit is contained in:
Kornel Benko 2011-05-19 07:48:41 +00:00
parent e7f9813942
commit ee42f84c77

View File

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