use absolute path for flex output

This commit is contained in:
Yuichi Nishiwaki 2014-03-02 13:24:12 +09:00
parent d77035a537
commit e4d4c51e78
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
find_package(FLEX REQUIRED) 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 add_library(picrin SHARED
src/blob.c src/bool.c src/char.c src/codegen.c src/cont.c src/error.c src/blob.c src/bool.c src/char.c src/codegen.c src/cont.c src/error.c