File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,17 @@ endif()
93
93
option (SQLITECPP_RUN_DOXYGEN "Run Doxygen C++ documentation tool." ON )
94
94
if (SQLITECPP_RUN_DOXYGEN )
95
95
# 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 ()
101
107
endif ()
102
108
103
109
option (SQLITECPP_RUN_TESTS "Run test tools." ON )
You can’t perform that action at this time.
0 commit comments