Mercurial > libjeffpc
changeset 62:97874539130d
cmake: #include "foo.h" should check the source directory as well
Instead of including only from the binary directory, we should include from
the source directory as well.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Fri, 01 Apr 2016 16:45:16 -0400 |
parents | 49acba50f6fc |
children | bd61c4d5d281 |
files | CMakeLists.txt |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Fri Apr 01 16:44:07 2016 -0400 +++ b/CMakeLists.txt Fri Apr 01 16:45:16 2016 -0400 @@ -63,6 +63,11 @@ ${UMEM_INCLUDE_DIR} ) +# include the current source dir but only for: #include "foo.h" +add_compile_options( + -iquote ${CMAKE_CURRENT_SOURCE_DIR} +) + BISON_TARGET(sexpr sexpr.y ${CMAKE_CURRENT_BINARY_DIR}/sexpr.tab.c COMPILE_FLAGS "-p sexpr_reader_") FLEX_TARGET(sexpr sexpr.l ${CMAKE_CURRENT_BINARY_DIR}/sexpr.lex.c