diff options
author | protomors <protomors@gmail.com> | 2017-11-08 05:41:08 +0600 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-27 11:08:16 +0300 |
commit | 94caa45505f1d03397215888d48f6eebf2d3d647 (patch) | |
tree | 7cdb9ff84a4bcc48c92ae5455a30fd2c7b4273bd /cmake/plugin.cmake | |
parent | 10f115b6d4050443d559b82bc54d5f030c248a3e (diff) |
CMake: Fix for precompiled headers with nmake.
Diffstat (limited to 'cmake/plugin.cmake')
-rw-r--r-- | cmake/plugin.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
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}) |