mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 15:46:52 +00:00
[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905
This commit is contained in:
parent
4cd7b3a3df
commit
139a3d6661
123 changed files with 874 additions and 644 deletions
|
@ -974,3 +974,13 @@ function(add_rostests_file)
|
|||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
if(PCH)
|
||||
macro(add_pch _target _pch _skip_list)
|
||||
target_precompile_headers(${_target} PRIVATE ${_pch})
|
||||
set_source_files_properties(${_skip_list} PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
|
||||
endmacro()
|
||||
else()
|
||||
macro(add_pch _target _pch _skip_list)
|
||||
endmacro()
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue