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
fbb9dc2c
Unverified
Commit
fbb9dc2c
authored
Jun 24, 2020
by
John Kessenich
Committed by
GitHub
Jun 24, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2285 from proydakov/msvc-rtti-compilation-warning-fix
Fixed msvc 2019 nmake compiler warnings with RTTI.
parents
83970445
b90adef9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
CMakeLists.txt
CMakeLists.txt
+6
-1
No files found.
CMakeLists.txt
View file @
fbb9dc2c
...
...
@@ -140,7 +140,12 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" AND NOT MSVC)
endif
()
elseif
(
MSVC
)
if
(
NOT ENABLE_RTTI
)
add_compile_options
(
/GR-
)
# Disable RTTI
string
(
FIND
"
${
CMAKE_CXX_FLAGS
}
"
"/GR"
MSVC_HAS_GR
)
if
(
MSVC_HAS_GR
)
string
(
REGEX REPLACE /GR /GR- CMAKE_CXX_FLAGS
${
CMAKE_CXX_FLAGS
}
)
else
()
add_compile_options
(
/GR-
)
# Disable RTTI
endif
()
endif
()
if
(
ENABLE_EXCEPTIONS
)
add_compile_options
(
/EHsc
)
# Enable Exceptions
...
...
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