Removed macro for win ver

This commit is contained in:
Kylart 2019-11-05 11:24:35 +01:00
parent 8bae7851a4
commit def0701406
1 changed files with 0 additions and 13 deletions

View File

@ -9,19 +9,6 @@ set(CMAKE_BUILD_TYPE Release)
# Windows things... # Windows things...
if (MSVC_VERSION GREATER_EQUAL "1900") if (MSVC_VERSION GREATER_EQUAL "1900")
macro(get_WIN32_WINNT version)
if (WIN32 AND CMAKE_SYSTEM_VERSION)
set(ver ${CMAKE_SYSTEM_VERSION})
string(REPLACE "." "" ver ${ver})
string(REGEX REPLACE "([0-9])" "0\\1" ver ${ver})
set(${version} "0x${ver}")
endif()
endmacro()
get_WIN32_WINNT(ver)
add_definitions(-D_WIN32_WINNT=${ver})
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("/std:c++14" _cpp_14_flag_supported) CHECK_CXX_COMPILER_FLAG("/std:c++14" _cpp_14_flag_supported)
if (_cpp_14_flag_supported) if (_cpp_14_flag_supported)