Skip to content

Commit

Permalink
make cmake version bump conditional on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed May 1, 2020
1 parent 1c3377b commit 13159a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
if(MSVC)
cmake_minimum_required (VERSION 3.16.4)
else()
cmake_minimum_required (VERSION 3.0)
endif()
include(CheckFunctionExists)
include(CheckSymbolExists)
include(CheckLibraryExists)
Expand Down Expand Up @@ -38,7 +42,7 @@ option(ENABLE_NC "Enable installing TLS-enabled nc(1)" OFF)
set(OPENSSLDIR ${OPENSSLDIR} CACHE PATH "Set the default openssl directory" FORCE)

option(USE_STATIC_MSVC_RUNTIMES "Use /MT instead of /MD in MSVC" OFF)
if( USE_STATIC_MSVC_RUNTIMES )
if(USE_STATIC_MSVC_RUNTIMES)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()

Expand Down

0 comments on commit 13159a5

Please sign in to comment.