|
From: <ai...@us...> - 2013-08-16 19:36:43
|
Revision: 12485
http://sourceforge.net/p/plplot/code/12485
Author: airwin
Date: 2013-08-16 19:36:39 +0000 (Fri, 16 Aug 2013)
Log Message:
-----------
If perl cannot be found, then do not allow a build of the docbook
documentation since all backends for that build require perl.
Modified Paths:
--------------
trunk/cmake/modules/docbook.cmake
Modified: trunk/cmake/modules/docbook.cmake
===================================================================
--- trunk/cmake/modules/docbook.cmake 2013-08-16 18:02:59 UTC (rev 12484)
+++ trunk/cmake/modules/docbook.cmake 2013-08-16 19:36:39 UTC (rev 12485)
@@ -21,12 +21,12 @@
# Configuration for the building of DocBook documentation
option(BUILD_DOC "Enable build of DocBook documentation" OFF)
-if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
+if(NOT (PERL_FOUND AND CMAKE_SYSTEM_NAME STREQUAL "Linux"))
set(
BUILD_DOC OFF CACHE INTERNAL
"Enable build of DocBook documentation"
)
-endif(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
+endif(NOT (PERL_FOUND AND CMAKE_SYSTEM_NAME STREQUAL "Linux"))
option(PREBUILT_DOC "Assume documentation is already built and present in doc/docbooks/src, ready to be installed. This option is useful for package maintainers" OFF)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|