From 0392544b7adddb20f9e14de078994c960f928e54 Mon Sep 17 00:00:00 2001 From: David Neto Date: Mon, 12 Nov 2018 17:09:07 -0500 Subject: [PATCH] PCH filename depends on current binary dir Fixes #1572 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 886f694..7dc35b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}") -- 2.7.4