mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
[CMake] When building with MSVC and without WARNINGS_AS_ERRORS
pass `/WX-` to MSVC. Although this is not necessary this duplicates the behaviour of the old build system.
This commit is contained in:
parent
870be706e9
commit
5893aea602
|
@ -44,4 +44,11 @@ if (WARNINGS_AS_ERRORS)
|
||||||
message(STATUS "Treating compiler warnings as errors")
|
message(STATUS "Treating compiler warnings as errors")
|
||||||
else()
|
else()
|
||||||
message(STATUS "Not treating compiler warnings as errors")
|
message(STATUS "Not treating compiler warnings as errors")
|
||||||
|
# FIXME: Remove "x.." when CMP0054 is set to NEW
|
||||||
|
if ("x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC")
|
||||||
|
# Warnings as errors is off by default for MSVC so setting this
|
||||||
|
# is not necessary but this duplicates the behaviour of the old
|
||||||
|
# build system.
|
||||||
|
list(APPEND Z3_COMPONENT_CXX_FLAGS "/WX-")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue