Skip to content
Snippets Groups Projects
Unverified Commit 97573b0c authored by John Kessenich's avatar John Kessenich Committed by GitHub
Browse files

Merge pull request #1573 from dneto0/fix-pch

PCH filename depends on current binary dir
parents d509a5ee 0392544b
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ macro(glslang_pch SRCS PCHCPP)
if (CMAKE_GENERATOR MATCHES "^Visual Studio")
set(PCH_NAME "$(IntDir)\\pch.pch")
else()
set(PCH_NAME "pch.pch")
set(PCH_NAME "${CMAKE_CURRENT_BINARY_DIR}/pch.pch")
endif()
# make source files use/depend on PCH_NAME
set_source_files_properties(${${SRCS}} PROPERTIES COMPILE_FLAGS "/Yupch.h /FIpch.h /Fp${PCH_NAME} /Zm300" OBJECT_DEPENDS "${PCH_NAME}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment