diff --git a/buildtools/LibyuiCommon.cmake b/buildtools/LibyuiCommon.cmake index 18453bc..c370bb1 100644 --- buildtools/LibyuiCommon.cmake +++ buildtools/LibyuiCommon.cmake @@ -41,6 +41,7 @@ MACRO( SET_OPTIONS ) # setup configurable options OPTION( DISABLE_SHARED "Shall I build a static library, only?" OFF ) OPTION( DOCS_ONLY "Shall \"make install\" install only docs, no binaries?" OFF ) + OPTION( SKIP_LATEX "Shall I skip the generation of LaTeX PDF-docs?" OFF ) OPTION( ENABLE_STATIC "Shall I build a static library, too?" OFF ) OPTION( ENABLE_DEBUG "Shall I include Debug-Symbols in Release?" OFF ) OPTION( ENABLE_EXAMPLES "Shall I compile the examples, too?" OFF ) @@ -266,7 +267,7 @@ MACRO( SET_AUTODOCS ) # looks for doxygen, dot and latex and setup autodocs acc AND NOT ${MAKEINDEX_COMPILER} STREQUAL "MAKEINDEX_COMPILER-NOTFOUND" ) - IF( ${LATEX_COND} ) + IF( ${LATEX_COND} AND NOT SKIP_LATEX ) MESSAGE( STATUS "Found LaTeX: ${PDFLATEX_COMPILER}" ) MESSAGE( STATUS "Found LaTeX: ${MAKEINDEX_COMPILER}" ) SET( BUILD_LATEX "YES" ) @@ -286,10 +287,10 @@ MACRO( SET_AUTODOCS ) # looks for doxygen, dot and latex and setup autodocs acc ) ENDIF( INSTALL_DOCS OR DOCS_ONLY ) - ELSE( ${LATEX_COND} ) + ELSE( ${LATEX_COND} AND NOT SKIP_LATEX ) MESSAGE( STATUS "Checking for LaTeX: not found" ) SET( BUILD_LATEX "NO" ) - ENDIF( ${LATEX_COND} ) + ENDIF( ${LATEX_COND} AND NOT SKIP_LATEX ) ADD_CUSTOM_TARGET( ${DOXYGEN_TARGET} ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile"