From dd959eecd6ad74eb2d7bf6526d16814d244df111 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 3 Oct 2016 23:39:14 -0400 Subject: [PATCH] build: Fix make install when ldoc is missing --- CMakeLists.txt | 3 +++ awesomeConfig.cmake | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 275e8e03a..dfc0fa6f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,6 +106,9 @@ set(AWESOME_C_FLAGS mark_as_advanced(AWESOME_C_FLAGS) target_compile_options(${PROJECT_AWE_NAME} PRIVATE ${AWESOME_C_FLAGS}) +# Make sure awesomerc.lua is generated +add_dependencies(${PROJECT_AWE_NAME} generate_awesomerc) + # Linux w/ GCC requires -rdynamic to get backtrace to fully work. # # For "historical reasons", CMake adds the option to the linker flags diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 4208d67dd..fde932a77 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -351,6 +351,10 @@ add_custom_command( ${BUILD_DIR}/awesomerc.lua ) +# Create a target for the auto-generated awesomerc.lua +add_custom_target(generate_awesomerc DEPENDS ${BUILD_DIR}/awesomerc.lua) + + #}}} # {{{ Copy additional files