mirror of
https://github.com/hasherezade/hollows_hunter.git
synced 2026-10-12 02:15:21 +00:00
[NOBIN] For GNU compilers: set Vista as minimal version supported (Issue #22)
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user