diff options
Diffstat (limited to 'cmake/lib.cmake')
-rw-r--r-- | cmake/lib.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/lib.cmake b/cmake/lib.cmake index 33e940a663..d06145fe0b 100644 --- a/cmake/lib.cmake +++ b/cmake/lib.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}) |