projects
/
platform
/
upstream
/
glslang.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
d509a5e
)
Merge pull request #1573 from dneto0/fix-pch
author
John Kessenich
<johnkslang@users.noreply.github.com>
Mon, 12 Nov 2018 23:13:40 +0000
(16:13 -0700)
committer
GitHub
<noreply@github.com>
Mon, 12 Nov 2018 23:13:40 +0000
(16:13 -0700)
PCH filename depends on current binary dir
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
886f694
..
7dc35b0
100644
(file)
--- 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}")