Переглянути джерело

honor source file property COMPILE_OPTIONS

master
Sascha Kratky 8 роки тому
джерело
коміт
bebfeb4886
1 змінених файлів з 7 додано та 1 видалено
  1. +7
    -1
      CMake/cotire.cmake

+ 7
- 1
CMake/cotire.cmake Переглянути файл

@@ -239,7 +239,13 @@ function (cotire_filter_language_source_files _language _target _sourceFilesVar
# add to excluded sources, if file has custom compile flags
list (APPEND _excludedSourceFiles "${_sourceFile}")
else()
list (APPEND _sourceFiles "${_sourceFile}")
get_source_file_property(_sourceCompileOptions "${_sourceFile}" COMPILE_OPTIONS)
if (_sourceCompileOptions)
# add to excluded sources, if file has list of custom compile options
list (APPEND _excludedSourceFiles "${_sourceFile}")
else()
list (APPEND _sourceFiles "${_sourceFile}")
endif()
endif()
endif()
endforeach()


Завантаження…
Відмінити
Зберегти