diff --git a/CMakeLists.txt b/CMakeLists.txt index c17e8595f5..16610d3189 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1035,7 +1035,6 @@ if(BUILD_TESTING) # add_custom_target(unittests) add_subdirectory(tests EXCLUDE_FROM_ALL) - add_subdirectory(doc EXCLUDE_FROM_ALL) # # add examples @@ -1054,6 +1053,8 @@ if(BUILD_TESTING) add_custom_target(all_executables DEPENDS scip unittests examples applications) endif() +add_subdirectory(doc EXCLUDE_FROM_ALL) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OLD_CMAKE_RUNTIME_OUTPUT_DIRECTORY}) if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})