diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index f0975821f..05e0a13ef 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -56,7 +56,7 @@ if (GTSAM_BUILD_DOCS) if (GTSAM_BUILD_UNSTABLE) list(APPEND doc_subdirs ${gtsam_unstable_doc_subdirs}) endif() - if (GTSAM_BUILD_EXAMPLES) + if (GTSAM_BUILD_EXAMPLES_ALWAYS) list(APPEND doc_subdirs examples) endif()