Browse Source

Fix Debug/Release PCH Battles

Don't specify the filename ourselves... Let VS figure it out.
Adam Johnson 12 years ago
parent
commit
194f44b017
  1. 1
      cmake/PrecompiledHeader.cmake

1
cmake/PrecompiledHeader.cmake

@ -14,7 +14,6 @@ function(use_precompiled_header PrecompiledHeader PrecompiledSource Headers Sour
get_filename_component(PrecompiledBasename ${PrecompiledHeader} NAME_WE) get_filename_component(PrecompiledBasename ${PrecompiledHeader} NAME_WE)
set(PrecompiledBinary ${PrecompiledBasename}.pch) set(PrecompiledBinary ${PrecompiledBasename}.pch)
add_definitions(/Fp"${PrecompiledBinary}")
add_definitions(/Yu"${PrecompiledHeader}") add_definitions(/Yu"${PrecompiledHeader}")
add_definitions(/FI"${PrecompiledHeader}") add_definitions(/FI"${PrecompiledHeader}")
set_source_files_properties(${PrecompiledSource} PROPERTIES COMPILE_FLAGS "/Yc\"${PrecompiledHeader}\"") set_source_files_properties(${PrecompiledSource} PROPERTIES COMPILE_FLAGS "/Yc\"${PrecompiledHeader}\"")

Loading…
Cancel
Save