From d59bdec32fa2b28b47b5d0b056102ee07e5ccd9a Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Thu, 11 Feb 2016 03:43:19 -0500 Subject: [PATCH] Fix make install when documentation is disabled --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0372467f..a1fad8757 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,10 +34,12 @@ set(AWE_DOC_FILES ${AWE_DOC_DIR}/02-contributing.md ${SOURCE_DIR}/LICENSE) -set(AWE_DOC_IMAGES - ${AWE_DOC_DIR}/images/widgetlayout1.png - ${AWE_DOC_DIR}/images/widgetlayout2.png -) +if (GENERATE_DOC) + set(AWE_DOC_IMAGES + ${AWE_DOC_DIR}/images/widgetlayout1.png + ${AWE_DOC_DIR}/images/widgetlayout2.png + ) +endif() set(AWE_SRCS ${BUILD_DIR}/awesome.c