Skip to content

Commit c823017

Browse files
committed
Fixed Travis CI build
- removed Doxygen from the Travis build
1 parent e7aa4f4 commit c823017

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

CMakeLists.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,17 @@ endif()
9393
option(SQLITECPP_RUN_DOXYGEN "Run Doxygen C++ documentation tool." ON)
9494
if (SQLITECPP_RUN_DOXYGEN)
9595
# add a Doxygen target to the "all" target
96-
add_custom_target(SQLiteCpp_doxygen
97-
ALL
98-
COMMAND doxygen Doxyfile > ${DEV_NULL}
99-
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
100-
)
96+
if (NOT DEFINED ENV{TRAVIS})
97+
# if not runing on a Travis CI Virtual Machine
98+
add_custom_target(SQLiteCpp_doxygen
99+
ALL
100+
COMMAND doxygen Doxyfile > ${DEV_NULL}
101+
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
102+
)
103+
else()
104+
# but no Doxygen under Travis CI: too costly and no real benefit
105+
message("no Doxygen target when TRAVIS is defined")
106+
endif()
101107
endif()
102108

103109
option(SQLITECPP_RUN_TESTS "Run test tools." ON)

0 commit comments

Comments
 (0)