Skip to content

Commit 1976a2c

Browse files
committed
Install docs which do not depend on doxygen regardless of doxygen availability
1 parent 44ddc09 commit 1976a2c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,8 +1346,8 @@ if (WIN32)
13461346
install(TARGETS midiplayer DESTINATION ${GAMEDIR})
13471347
endif()
13481348

1349-
if(ENABLE_DOC AND DOXYGEN_FOUND)
13501349
install(FILES doc/stratagus.6 DESTINATION ${MANDIR})
1350+
if(ENABLE_DOC)
13511351
install(FILES
13521352
doc/development.html
13531353
doc/faq.html
@@ -1360,8 +1360,11 @@ if(ENABLE_DOC AND DOXYGEN_FOUND)
13601360
doc/README-SDL.txt
13611361
DESTINATION share/doc/stratagus
13621362
)
1363-
install(DIRECTORY doc/graphics doc/scripts ${CMAKE_CURRENT_BINARY_DIR}/doxygen DESTINATION ${DOCDIR})
1364-
endif(ENABLE_DOC AND DOXYGEN_FOUND)
1363+
install(DIRECTORY doc/graphics doc/scripts DESTINATION ${DOCDIR})
1364+
if(DOXYGEN_FOUND)
1365+
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doxygen DESTINATION ${DOCDIR})
1366+
endif()
1367+
endif()
13651368

13661369
if(ENABLE_DEV)
13671370
install(FILES ${gameheaders_HDRS} DESTINATION ${STRATAGUS_HEADERS})

0 commit comments

Comments
 (0)