From 194f44b0179ba5ed32d05eb90b8d021e13571c58 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 30 Jan 2013 14:05:33 -0500 Subject: [PATCH] Fix Debug/Release PCH Battles Don't specify the filename ourselves... Let VS figure it out. --- cmake/PrecompiledHeader.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/PrecompiledHeader.cmake b/cmake/PrecompiledHeader.cmake index 116c90c7..16a663ae 100644 --- a/cmake/PrecompiledHeader.cmake +++ b/cmake/PrecompiledHeader.cmake @@ -14,7 +14,6 @@ function(use_precompiled_header PrecompiledHeader PrecompiledSource Headers Sour get_filename_component(PrecompiledBasename ${PrecompiledHeader} NAME_WE) set(PrecompiledBinary ${PrecompiledBasename}.pch) - add_definitions(/Fp"${PrecompiledBinary}") add_definitions(/Yu"${PrecompiledHeader}") add_definitions(/FI"${PrecompiledHeader}") set_source_files_properties(${PrecompiledSource} PROPERTIES COMPILE_FLAGS "/Yc\"${PrecompiledHeader}\"")