diff options
author | Charles Giessen <charles@lunarg.com> | 2021-08-16 20:50:43 +0300 |
---|---|---|
committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2021-08-26 20:38:55 +0300 |
commit | 39dd126e16c7a1c7135265aae9ac67ae9e110db0 (patch) | |
tree | 69e222fc01ad3348fab7ae0a3283331cfe424c8e | |
parent | d7c8139c370a601e9637c21eeedb95d98fe17703 (diff) |
build: Silence MSVC warning of replacing /GRsdk-1.2.189.1sdk-1.2.189.0sdk-1.2.189
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bd01fa016..c79a1c069 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -196,6 +196,11 @@ if(MSVC) # /w34057: Warn about different indirection types. # /w34245: Warn about signed/unsigned mismatch. set(MSVC_LOADER_COMPILE_OPTIONS /WX /GR- /w34456 /w34701 /w34703 /w34057 /w34245) + + # Replace /GR with an empty string, prevents warnings of /GR being overriden by /GR- + # Newer CMake versions (3.20) have better solutions for this through policy - using the old + # way while waiting for when updating can occur + string(REPLACE "/GR" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) endif() # Optional codegen target |