changeset 1179:01c24da762da

author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 25 Sep 2014 08:36:40 +0200
parents fd3128b2cf45
children dea1c786e1c6
files NEWS Resources/CMake/VisualStudioPrecompiledHeaders.cmake
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Mon Sep 22 13:26:24 2014 +0200
+++ b/NEWS	Thu Sep 25 08:36:40 2014 +0200
@@ -1,6 +1,8 @@
 Pending changes in the mainline
 ===============================
 
+* Fix issue 21 (Microsoft Visual Studio precompiled headers)
+
 
 Version 0.8.4 (2014/09/19)
 ==========================
--- a/Resources/CMake/VisualStudioPrecompiledHeaders.cmake	Mon Sep 22 13:26:24 2014 +0200
+++ b/Resources/CMake/VisualStudioPrecompiledHeaders.cmake	Thu Sep 25 08:36:40 2014 +0200
@@ -1,6 +1,6 @@
 macro(ADD_VISUAL_STUDIO_PRECOMPILED_HEADERS PrecompiledHeaders PrecompiledSource Sources)
   get_filename_component(PrecompiledBasename ${PrecompiledHeaders} NAME_WE)
-  set(PrecompiledBinary "${CMAKE_CURRENT_BINARY_DIR}/${PrecompiledBasename}.pch")
+  set(PrecompiledBinary "$(IntDir)/${PrecompiledBasename}.pch")
 
   set_source_files_properties(${PrecompiledSource}
     PROPERTIES COMPILE_FLAGS "/Yc\"${PrecompiledHeaders}\" /Fp\"${PrecompiledBinary}\""