Skip to content
Snippets Groups Projects
Commit b4ed6bb9 authored by Kyle McKay's avatar Kyle McKay
Browse files

Explicitly mark the generated files with the GENERATED property to make sure...

Explicitly mark the generated files with the GENERATED property to make sure CMake handles them correctly
parent f2c327be
No related branches found
No related tags found
No related merge requests found
...@@ -44,9 +44,12 @@ include_directories( ...@@ -44,9 +44,12 @@ include_directories(
${LSCRIPT_INCLUDE_DIRS} ${LSCRIPT_INCLUDE_DIRS}
) )
set(lscript_compile_SOURCE_FILES set(lscript_generated_SOURCE_FILES
indra.l.cpp indra.l.cpp
indra.y.cpp indra.y.cpp
)
set(lscript_compile_SOURCE_FILES
lscript_alloc.cpp lscript_alloc.cpp
lscript_bytecode.cpp lscript_bytecode.cpp
lscript_error.cpp lscript_error.cpp
...@@ -80,7 +83,10 @@ set(lscript_compile_HEADER_FILES ...@@ -80,7 +83,10 @@ set(lscript_compile_HEADER_FILES
set_source_files_properties(${lscript_compile_HEADER_FILES} set_source_files_properties(${lscript_compile_HEADER_FILES}
PROPERTIES HEADER_FILE_ONLY TRUE) PROPERTIES HEADER_FILE_ONLY TRUE)
list(APPEND lscript_compile_SOURCE_FILES ${lscript_compile_HEADER_FILES}) set_source_files_properties(${lscript_generated_SOURCE_FILES}
PROPERTIES HEADER_FILE_ONLY FALSE GENERATED TRUE)
list(APPEND lscript_compile_SOURCE_FILES ${lscript_generated_SOURCE_FILES} ${lscript_compile_HEADER_FILES})
add_custom_command( add_custom_command(
OUTPUT OUTPUT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment