Skip to content

Commit 842514d

Browse files
committed
2 parents 7d36c4e + 09e7d9e commit 842514d

File tree

2 files changed

+170
-258
lines changed

2 files changed

+170
-258
lines changed

CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# basic info
22
cmake_minimum_required(VERSION 3.22 FATAL_ERROR)
3+
4+
# for CMake 3.30+ (normalizes install destination paths)
5+
if(POLICY CMP0177)
6+
cmake_policy(SET CMP0177 NEW)
7+
endif()
8+
39
project(
410
VMAware
511
DESCRIPTION "VM detection library"
@@ -16,11 +22,10 @@ set(CMAKE_CXX_EXTENSIONS OFF)
1622
if(MSVC)
1723
# Globally disable specific MSVC warnings from external headers
1824
add_compile_options(
19-
/wd5039 # 'TpSetCallbackCleanupGroup' potentially throwing
25+
/wd4626 # deleted assignment
26+
/wd4668 # undefined macro replaced with '0'
2027
/wd4820 # padding added after data member
21-
/wd4626 # deleted assignment operator
2228
/wd5045 # Spectre mitigation notice
23-
/wd4668 # undefined macro replaced with '0'
2429
/Zc:enumTypes # use enum underlying type canonicalization
2530
)
2631
endif()

0 commit comments

Comments
 (0)