From 933d14ef1d45c60194f5f2dd09b4b85dd5daceff Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 4 Aug 2018 15:22:32 +0200 Subject: [PATCH] Check whether include dirs for generator exist at configure time --- lib/cmake/modules/ReflectionGenerator.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cmake/modules/ReflectionGenerator.cmake b/lib/cmake/modules/ReflectionGenerator.cmake index 58cb1e1..2ab9098 100644 --- a/lib/cmake/modules/ReflectionGenerator.cmake +++ b/lib/cmake/modules/ReflectionGenerator.cmake @@ -91,6 +91,9 @@ function(add_reflection_generator_invocation) # apply specified REFLECTION_GENERATOR_INCLUDE_DIRECTORIES foreach(INCLUDE_DIR ${REFLECTION_GENERATOR_INCLUDE_DIRECTORIES}) + if(NOT IS_DIRECTORY "${INCLUDE_DIR}") + message(FATAL_ERROR "Specified include directory \"${INCLUDE_DIR})\" for reflection generator doesn't exists.") + endif() list(APPEND ARGS_CLANG_OPTIONS -I "${INCLUDE_DIR}") endforeach()