Skip to content

Commit

Permalink
[NOBIN] For GNU compilers: set Vista as minimal version supported (Is…
Browse files Browse the repository at this point in the history
…sue #22)
  • Loading branch information
hasherezade committed Nov 1, 2024
1 parent 9b473b0 commit 68a3f48
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68a3f48

Please sign in to comment.