Gracefuly omit doc creation if no perl detected

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38787 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Kornel Benko 2011-05-19 07:44:04 +00:00
parent 46d1f8a03c
commit b5828f9df4

View File

@ -563,10 +563,11 @@ add_subdirectory(lib/scripts "${TOP_BINARY_DIR}/scripts")
if(LYX_INSTALL) if(LYX_INSTALL)
FIND_PROGRAM(LYX_PERL_EXECUTABLE perl) FIND_PROGRAM(LYX_PERL_EXECUTABLE perl)
if(${LYX_PERL_EXECUTABLE} MATCHES "-NOTFOUND") if(${LYX_PERL_EXECUTABLE} MATCHES "-NOTFOUND")
message(FATAL_ERROR "Perl required!") message(STATUS "Perl required to create doc!")
endif() else()
add_subdirectory(${LYX_CMAKE_DIR}/man "${TOP_BINARY_DIR}/man") add_subdirectory(${LYX_CMAKE_DIR}/man "${TOP_BINARY_DIR}/man")
add_subdirectory(${LYX_CMAKE_DIR}/doc "${TOP_BINARY_DIR}/doc") add_subdirectory(${LYX_CMAKE_DIR}/doc "${TOP_BINARY_DIR}/doc")
endif()
include(../Install) include(../Install)
endif() endif()