[NOBIN] For GNU compilers: set Vista as minimal version supported (Issue #22)

This commit is contained in:
hasherezade
2024-11-01 14:02:42 -07:00
parent 9b473b033c
commit 68a3f488f3
+5 -2
View File
@@ -5,14 +5,17 @@ option(HH_BUILD_TESTING "Enable testing for HollowsHunter" ON)
option (PECONV_LIB_INSTALL OFF)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
option( USE_ETW "Use ETW" ON )
if(USE_ETW)
add_compile_definitions(USE_ETW)
endif()
# static linking for GNU compilers
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(LINK_STATICALLY)
add_compile_definitions(
_WIN32_WINNT=1536 # 0x600 aka Windows Vista required
)
if (LINK_STATICALLY)
add_link_options(
-static
-static-libgcc