Skip to content

Commit

Permalink
Set minimum windows version in CMakeLists.txt
Browse files Browse the repository at this point in the history
I don't know if I also need to set this for zlib but we will see
  • Loading branch information
gentlegiantJGC committed Apr 9, 2021
1 parent 1f9a0df commit 6b999db
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 6b999db

Please sign in to comment.