From e4d4c51e786a3935bbc2584ce42bf37e6c5d85bf Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sun, 2 Mar 2014 13:24:12 +0900 Subject: [PATCH] use absolute path for flex output --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 34bc1a93..e80d7cc3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ find_package(FLEX REQUIRED) -flex_target(scan src/scan.l src/lex.yy.c COMPILE_FLAGS --header-file="src/lex.yy.h") +flex_target(scan src/scan.l ${PROJECT_SOURCE_DIR}/src/lex.yy.c COMPILE_FLAGS --header-file="src/lex.yy.h") add_library(picrin SHARED src/blob.c src/bool.c src/char.c src/codegen.c src/cont.c src/error.c