From b4ed6bb95c28ea805c756373df0bd0cde7505eb8 Mon Sep 17 00:00:00 2001 From: Kyle McKay Date: Sun, 27 Jul 2008 00:29:30 +0000 Subject: Explicitly mark the generated files with the GENERATED property to make sure CMake handles them correctly --- indra/lscript/lscript_compile/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'indra/lscript') 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 -- cgit v1.2.3