Commit 0dfc21dc authored by Wesierski, Lukasz's avatar Wesierski, Lukasz Committed by gbsbuild

Set C++14

Change-Id: I2f9df4553f81da8325cbb65ccdf56d35cc9a0434
parent b21aca87
......@@ -31,7 +31,7 @@ ENDIF()
SET(ThirdPartyDir "third_party")
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_STANDARD 14)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
IF(NOT MSVC)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024")
......
......@@ -58,6 +58,10 @@ set(IGC_API_MAJOR_VERSION 1)
set(IGC_API_MINOR_VERSION 0)
set(IGC_API_PATCH_VERSION 0)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
# ======================================================================================================
# ================================================ UTILS ===============================================
# ======================================================================================================
......@@ -2900,7 +2904,7 @@ endif()
if(ANDROID AND _igc_compiler_is_clang)
set(_igc_cxx_standard "-std=gnu++14")
else()
set(_igc_cxx_standard "-std=c++11")
set(_igc_cxx_standard "-std=c++14")
endif()
if(_igc_compiler_is_gnu_or_clang)
......
......@@ -10,7 +10,7 @@ include (BuildFunctions.cmake)
# set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_STANDARD 14)
# do static build for IGA standalone build
set(LINK_AS_STATIC_LIB TRUE)
......
......@@ -2,7 +2,7 @@
##############################################
# IGA dynamic and static library generation
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_STANDARD 14)
# add GED libraries and includes
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment