summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle McKay <scot@lindenlab.com>2008-07-27 00:29:30 +0000
committerKyle McKay <scot@lindenlab.com>2008-07-27 00:29:30 +0000
commitb4ed6bb95c28ea805c756373df0bd0cde7505eb8 (patch)
tree18a1852331c8f500e61052db15670629f097c59b
parentf2c327be963994ddf8642e024b9e23673ef07694 (diff)
Explicitly mark the generated files with the GENERATED property to make sure CMake handles them correctly
-rw-r--r--indra/lscript/lscript_compile/CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/lscript/lscript_compile/CMakeLists.txt b/indra/lscript/lscript_compile/CMakeLists.txt
index 3b144c5338..252085bab2 100644
--- a/indra/lscript/lscript_compile/CMakeLists.txt
+++ b/indra/lscript/lscript_compile/CMakeLists.txt
@@ -44,9 +44,12 @@ include_directories(
${LSCRIPT_INCLUDE_DIRS}
)
-set(lscript_compile_SOURCE_FILES
+set(lscript_generated_SOURCE_FILES
indra.l.cpp
indra.y.cpp
+ )
+
+set(lscript_compile_SOURCE_FILES
lscript_alloc.cpp
lscript_bytecode.cpp
lscript_error.cpp
@@ -80,7 +83,10 @@ set(lscript_compile_HEADER_FILES
set_source_files_properties(${lscript_compile_HEADER_FILES}
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(
OUTPUT