Skip to content

Commit

Permalink
Merge pull request #1011 from leapmotion/fix-pch
Browse files Browse the repository at this point in the history
Actually use pch.
  • Loading branch information
jdonald committed May 18, 2017
2 parents 5e1ec35 + 1a9fbfc commit 0b2bd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake-modules/AddPCH.cmake
Expand Up @@ -7,6 +7,6 @@ macro(add_pch TargetName PrecompiledHeader PrecompiledSource)
COMPILE_FLAGS "/Yc${PrecompiledHeader}"
)
target_sources(${TargetName} PRIVATE ${PrecompiledHeader} ${PrecompiledSource})
target_compile_definitions(${TargetName} PRIVATE "/Yu${PrecompiledHeader}")
set_property(TARGET ${TargetName} APPEND PROPERTY COMPILE_FLAGS "/Yu")
endif(MSVC)
endmacro(add_pch)

0 comments on commit 0b2bd2d

Please sign in to comment.