changeset 179:bed61aae209f

build: -iquote the current binary dir Without this, we fail to build when CMAKE_CURRENT_SOURCE_DIR != CMAKE_CURRENT_BINARY_DIR (i.e., when doing out-of-tree builds). Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Fri, 14 Apr 2017 22:41:31 -0400
parents 2350f0436f22
children 117542315d6d
files CMakeLists.txt
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Fri Apr 14 22:41:31 2017 -0400
+++ b/CMakeLists.txt	Fri Apr 14 22:41:31 2017 -0400
@@ -68,7 +68,8 @@
 
 # include the current source dir but only for: #include "foo.h"
 add_compile_options(
-	-iquote ${CMAKE_CURRENT_SOURCE_DIR}
+	-iquote${CMAKE_CURRENT_SOURCE_DIR}
+	-iquote${CMAKE_CURRENT_BINARY_DIR}
 )
 
 BISON_TARGET(sexpr sexpr.y ${CMAKE_CURRENT_BINARY_DIR}/sexpr.tab.c