patch cpp example to use passed CMAKE_CXX_STANDARD (#30835)

pull/30962/head
h-vetinari 2 years ago committed by GitHub
parent bfea47093f
commit a562807108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples/cpp/cmake/common.cmake

@ -19,7 +19,9 @@
cmake_minimum_required(VERSION 3.5.1)
set (CMAKE_CXX_STANDARD 14)
if (NOT DEFINED CMAKE_CXX_STANDARD)
set (CMAKE_CXX_STANDARD 14)
endif()
if(MSVC)
add_definitions(-D_WIN32_WINNT=0x600)

Loading…
Cancel
Save