cmake - mscvc: silent warning C4068: unknown pragma 'GCC'

This commit is contained in:
Zdenko Podobný 2022-12-15 13:25:43 +01:00
parent 86a7bc6c06
commit f2f37a8323

View File

@ -275,6 +275,8 @@ elseif(MSVC)
# 'double' to 'float'
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} /wd4244 /wd4305 /wd4267 /wd4251 /wd4275 /wd4005")
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} /wd4068")
# Don't use /Wall because it generates too many warnings.
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /W0 /bigobj")
# MT flag