Check whether include dirs for generator exist at configure time

This commit is contained in:
Martchus 2018-08-04 15:22:32 +02:00
parent 29cd810507
commit 933d14ef1d
1 changed files with 3 additions and 0 deletions

View File

@ -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()