comparison Resources/CMake/VisualStudioPrecompiledHeaders.cmake @ 830:6c6e3c18799c

fix pch
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Jun 2014 12:03:46 +0200
parents a811bdf8b8eb
children 01c24da762da
comparison
equal deleted inserted replaced
829:e798ff248b98 830:6c6e3c18799c
6 PROPERTIES COMPILE_FLAGS "/Yc\"${PrecompiledHeaders}\" /Fp\"${PrecompiledBinary}\"" 6 PROPERTIES COMPILE_FLAGS "/Yc\"${PrecompiledHeaders}\" /Fp\"${PrecompiledBinary}\""
7 OBJECT_OUTPUTS "${PrecompiledBinary}") 7 OBJECT_OUTPUTS "${PrecompiledBinary}")
8 8
9 set_source_files_properties(${${Sources}} 9 set_source_files_properties(${${Sources}}
10 PROPERTIES COMPILE_FLAGS "/Yu\"${PrecompiledHeaders}\" /FI\"${PrecompiledHeaders}\" /Fp\"${PrecompiledBinary}\"" 10 PROPERTIES COMPILE_FLAGS "/Yu\"${PrecompiledHeaders}\" /FI\"${PrecompiledHeaders}\" /Fp\"${PrecompiledBinary}\""
11 OBJECT_DEPENDS "${PrecompiledBinary}") 11 OBJECT_DEPENDS "${PrecompiledBinary}")
12 12
13 add_definitions(-DORTHANC_USE_PRECOMPILED_HEADERS=1) 13 list(APPEND ${Sources} ${PrecompiledSource})
14 endmacro() 14 endmacro()