From c8230177248bf74bd50bba62e5b7fd0b5622e247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Fri, 7 Feb 2014 19:57:55 +0100 Subject: [PATCH] Fixed Travis CI build - removed Doxygen from the Travis build --- CMakeLists.txt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 17f1e5d..dfd08b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,11 +93,17 @@ endif() option(SQLITECPP_RUN_DOXYGEN "Run Doxygen C++ documentation tool." ON) if (SQLITECPP_RUN_DOXYGEN) # add a Doxygen target to the "all" target - add_custom_target(SQLiteCpp_doxygen - ALL - COMMAND doxygen Doxyfile > ${DEV_NULL} - WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} - ) + if (NOT DEFINED ENV{TRAVIS}) + # if not runing on a Travis CI Virtual Machine + add_custom_target(SQLiteCpp_doxygen + ALL + COMMAND doxygen Doxyfile > ${DEV_NULL} + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} + ) + else() + # but no Doxygen under Travis CI: too costly and no real benefit + message("no Doxygen target when TRAVIS is defined") + endif() endif() option(SQLITECPP_RUN_TESTS "Run test tools." ON)