-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWarnLevel.cmake
17 lines (16 loc) · 1017 Bytes
/
WarnLevel.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
##############################################################################
# #
# Copyright (C) 2023 MachineWare GmbH #
# All Rights Reserved #
# #
# This is work is licensed under the terms described in the LICENSE file #
# found in the root directory of this source tree. #
# #
##############################################################################
if(MSVC)
set(MWR_COMPILER_WARN_FLAGS /W3 /WX CACHE STRING
"Specifies the compiler warning flags to be used during builds." FORCE)
else()
set(MWR_COMPILER_WARN_FLAGS -Wall -Werror CACHE STRING
"Specifies the compiler warning flags to be used during builds." FORCE)
endif()