Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
05398232
Commit
05398232
authored
Oct 16, 2019
by
durswd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an option to make pch enabled in Cmake
parent
b03e4fc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
CMakeLists.txt
CMakeLists.txt
+2
-1
No files found.
CMakeLists.txt
View file @
05398232
...
...
@@ -37,6 +37,7 @@ option(ENABLE_EMSCRIPTEN_ENVIRONMENT_NODE "If using Emscripten, builds to run on
CMAKE_DEPENDENT_OPTION
(
ENABLE_HLSL
"Enables HLSL input support"
ON
"NOT ENABLE_GLSLANG_WEB"
OFF
)
option
(
ENABLE_OPT
"Enables spirv-opt capability if present"
ON
)
option
(
ENABLE_PCH
"Enables Precompiled header"
ON
)
if
(
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND WIN32
)
set
(
CMAKE_INSTALL_PREFIX
"install"
CACHE STRING
"..."
FORCE
)
...
...
@@ -52,7 +53,7 @@ endif()
# Precompiled header macro. Parameters are source file list and filename for pch cpp file.
macro
(
glslang_pch SRCS PCHCPP
)
if
(
MSVC AND CMAKE_GENERATOR MATCHES
"^Visual Studio"
)
if
(
MSVC AND CMAKE_GENERATOR MATCHES
"^Visual Studio"
AND ENABLE_PCH
)
set
(
PCH_NAME
"$(IntDir)
\\
pch.pch"
)
# 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
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment