From 94caa45505f1d03397215888d48f6eebf2d3d647 Mon Sep 17 00:00:00 2001 From: protomors Date: Wed, 8 Nov 2017 05:41:08 +0600 Subject: CMake: Fix for precompiled headers with nmake. --- cmake/plugin.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake/plugin.cmake') diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake index ed830572d6..a15b2f5f81 100644 --- a/cmake/plugin.cmake +++ b/cmake/plugin.cmake @@ -1,8 +1,8 @@ set(STDAFX "${CMAKE_CURRENT_SOURCE_DIR}/src/stdafx.cxx") if ((EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/src/stdafx.h") AND (EXISTS ${STDAFX})) file(GLOB PRECOMPILED_SOURCES "src/*.cpp") - SET_SOURCE_FILES_PROPERTIES(${PRECOMPILED_SOURCES} PROPERTIES COMPILE_FLAGS "/Yu") - SET_SOURCE_FILES_PROPERTIES(${STDAFX} PROPERTIES COMPILE_FLAGS "/Yc") + SET_SOURCE_FILES_PROPERTIES(${PRECOMPILED_SOURCES} PROPERTIES COMPILE_FLAGS "/Yu\"stdafx.h\" /Fp\"${CMAKE_CURRENT_BINARY_DIR}/${TARGET}.pch\"") + SET_SOURCE_FILES_PROPERTIES(${STDAFX} PROPERTIES COMPILE_FLAGS "/Yc\"stdafx.h\" /Fp\"${CMAKE_CURRENT_BINARY_DIR}/${TARGET}.pch\"") add_library(${TARGET} SHARED ${STDAFX} ${SOURCES}) else() add_library(${TARGET} SHARED ${SOURCES}) -- cgit v1.2.3