diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-20 10:35:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-20 10:35:28 +0400 |
commit | 203c6effd57cdf3ed3b21ed74f80e0a5bc6441a3 (patch) | |
tree | 1f66faf7e90ef6fd49babdf2df0bc0cf7e086511 /build_files/cmake | |
parent | 24b43043341ee35ac31c2f2005732073f6e8c0c4 (diff) |
code cleanup: quiet rna warnings, remove remove_strict_flags() for cmake/rna.
also set_source_files_properties() wasn't working for rna_*_gen.c files,
set dna.c and generated data files with generated property too.
Diffstat (limited to 'build_files/cmake')
-rw-r--r-- | build_files/cmake/macros.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index e8f3f3190a8..42e0a444c49 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -774,6 +774,9 @@ macro(data_to_c COMMAND ${CMAKE_COMMAND} -E make_directory ${_file_to_path} COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/datatoc ${file_from} ${file_to} DEPENDS ${file_from} datatoc) + + set_source_files_properties(${file_to} PROPERTIES GENERATED TRUE) + unset(_file_to_path) endmacro() @@ -797,10 +800,11 @@ macro(data_to_c_simple COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/datatoc ${_file_from} ${_file_to} DEPENDS ${_file_from} datatoc) + set_source_files_properties(${_file_to} PROPERTIES GENERATED TRUE) + unset(_file_from) unset(_file_to) unset(_file_to_path) - endmacro() # XXX Not used for now... |