Skip to content

Commit

Permalink
Target windows 7 (#5)
Browse files Browse the repository at this point in the history
Set minimum windows version to windows 7 in CMakeLists.txt
  • Loading branch information
gentlegiantJGC authored Apr 9, 2021
1 parent 1642ff5 commit 1d36104
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
project(leveldb)
cmake_minimum_required(VERSION 3.2)

if (WIN32)
# set windows 7 as the minimum version
add_definitions(-D_WIN32_WINNT=0x0601)
endif()

project(leveldb)

include(CheckCXXCompilerFlag)

list(APPEND SOURCES db/builder.cc)
Expand Down

0 comments on commit 1d36104

Please sign in to comment.