|
Lines 34-42
macro(ADD_PRECOMPILED_HEADER _header _cpp _source)
a/Source/cmake/WebKitMacros.cmake_sec1
|
| 34 |
set(PrecompiledBinary "${CMAKE_CURRENT_BINARY_DIR}/${_source}/${PrecompiledBasename}.pch") |
34 |
set(PrecompiledBinary "${CMAKE_CURRENT_BINARY_DIR}/${_source}/${PrecompiledBasename}.pch") |
| 35 |
set(_sources ${${_source}}) |
35 |
set(_sources ${${_source}}) |
| 36 |
|
36 |
|
| 37 |
set_source_files_properties(${_cpp} |
37 |
# clang-cl requires /FI with /Yc |
| 38 |
PROPERTIES COMPILE_FLAGS "/Yc\"${_header}\" /Fp\"${PrecompiledBinary}\"" |
38 |
if (COMPILER_IS_CLANG_CL) |
| 39 |
OBJECT_OUTPUTS "${PrecompiledBinary}") |
39 |
set_source_files_properties(${_cpp} |
|
|
40 |
PROPERTIES COMPILE_FLAGS "/Yc\"${_header}\" /Fp\"${PrecompiledBinary}\" /FI\"${_header}\"" |
| 41 |
OBJECT_OUTPUTS "${PrecompiledBinary}") |
| 42 |
else () |
| 43 |
set_source_files_properties(${_cpp} |
| 44 |
\ PROPERTIES COMPILE_FLAGS "/Yc\"${_header}\" /Fp\"${PrecompiledBinary}\"" |
| 45 |
OBJECT_OUTPUTS "${PrecompiledBinary}") |
| 46 |
endif () |
| 40 |
set_source_files_properties(${_sources} |
47 |
set_source_files_properties(${_sources} |
| 41 |
PROPERTIES COMPILE_FLAGS "/Yu\"${_header}\" /FI\"${_header}\" /Fp\"${PrecompiledBinary}\"") |
48 |
PROPERTIES COMPILE_FLAGS "/Yu\"${_header}\" /FI\"${_header}\" /Fp\"${PrecompiledBinary}\"") |
| 42 |
|
49 |
|