From 826bc0dd2eb90017f34d8edeaf5bb2ba17ab4b50 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 4 Aug 2023 15:37:08 +0200 Subject: [PATCH] Do not try to install the doc when not generated. --- crlcore/CMakeLists.txt | 4 +++- hurricane/CMakeLists.txt | 4 +++- oroshi/CMakeLists.txt | 4 +++- unicorn/CMakeLists.txt | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/crlcore/CMakeLists.txt b/crlcore/CMakeLists.txt index 0e6e3515..79f93508 100644 --- a/crlcore/CMakeLists.txt +++ b/crlcore/CMakeLists.txt @@ -42,4 +42,6 @@ add_subdirectory(src) add_subdirectory(python) add_subdirectory(cmake_modules) - add_subdirectory(doc) + if (BUILD_DOC) + add_subdirectory(doc) + endif() diff --git a/hurricane/CMakeLists.txt b/hurricane/CMakeLists.txt index ab937cc7..5c0a31e1 100644 --- a/hurricane/CMakeLists.txt +++ b/hurricane/CMakeLists.txt @@ -34,7 +34,9 @@ add_subdirectory(src) add_subdirectory(cmake_modules) - add_subdirectory(doc) + if (BUILD_DOC) + add_subdirectory(doc) + endif() #add_subdirectory(tests) #enable_testing() diff --git a/oroshi/CMakeLists.txt b/oroshi/CMakeLists.txt index c857cdc4..a41772b0 100644 --- a/oroshi/CMakeLists.txt +++ b/oroshi/CMakeLists.txt @@ -29,4 +29,6 @@ add_subdirectory(python) #add_subdirectory(etc) #add_subdirectory(cmake_modules) - add_subdirectory(doc) + if (BUILD_DOC) + add_subdirectory(doc) + endif() diff --git a/unicorn/CMakeLists.txt b/unicorn/CMakeLists.txt index ed1074d2..8509e672 100644 --- a/unicorn/CMakeLists.txt +++ b/unicorn/CMakeLists.txt @@ -54,4 +54,6 @@ add_subdirectory(src) add_subdirectory(python) add_subdirectory(cmake_modules) - add_subdirectory(doc) + if (BUILD_DOC) + add_subdirectory(doc) + endif()