Skip to content

Commit 06f2a96

Browse files
author
Jan Wilmans
committed
Re-enabled warings (lost by accident when the cmake migration was done)
1 parent 69f5ee5 commit 06f2a96

File tree

12 files changed

+1427
-1408
lines changed

12 files changed

+1427
-1408
lines changed

CMakeLists.txt

+14-4
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,26 @@ add_library(msvc_console_link_options INTERFACE)
3939
target_compile_features(project_compile_features INTERFACE cxx_constexpr cxx_auto_type cxx_final cxx_std_20)
4040
target_compile_definitions(project_definitions
4141
INTERFACE
42-
UNICODE _CRT_SECURE_NO_WARNINGS NOMINMAX WIN32_LEAN_AND_MEAN
43-
WIN32 WIN64 "_WIN32_WINNT=0x0601"
44-
_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
45-
)
42+
UNICODE
43+
NOMINMAX
44+
WIN32_LEAN_AND_MEAN
45+
_CRT_SECURE_NO_WARNINGS
46+
_WINSOCK_DEPRECATED_NO_WARNINGS
47+
WIN32
48+
WIN64
49+
_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
50+
"_WIN32_WINNT=0x0601"
51+
)
52+
# "_ITERATOR_DEBUG_LEVEL=0" # trips over debug/release mismatches
4653

4754
# /Oy and /RELEASE are added to avoid tripping malware detection
4855
# this is quite random, ymmv
4956
target_compile_options(project_compile_options INTERFACE /utf-8 /Oy)
5057
target_link_options(msvc_gui_link_options INTERFACE /SUBSYSTEM:WINDOWS /NOLOGO /RELEASE)
5158
target_link_options(msvc_console_link_options INTERFACE /SUBSYSTEM:CONSOLE /NOLOGO /RELEASE)
59+
60+
# warnings (the project picked up a bunch of unresolved warnings with migrating to new VS versions and when {fmt} was added, work in progress...)
61+
target_compile_options(project_compile_options INTERFACE /W4 /w14242 /w14254 /w14263 /w14265 /w14287 /w14289 /w14296 /w14311 /w14545 /w14546 /w14547 /w14549 /w14555 /w14640 /w14826 /w14905 /w14906 /w14928)
5262

5363
add_library(project::definitions ALIAS project_definitions)
5464
add_library(project::compile_features ALIAS project_compile_features)

0 commit comments

Comments
 (0)