apply CMAKE_CXX_STANDARD

This commit is contained in:
Jack Andersen 2017-06-17 16:52:19 -10:00
parent 03f16f7f48
commit 2401875b9a
1 changed files with 3 additions and 6 deletions

View File

@ -1,11 +1,8 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) # because of CMAKE_CXX_STANDARD
project(kabufuda)
if(NOT TARGET hecl)
if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
endif()
endif()
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(include)
set(KABUFUDA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include CACHE PATH "kabufuda include path" FORCE)