Browse Source

upgrade supported c++ version to 17, remove redundant c++11 checker

tags/v0.7.0-beta
yanghaoran 4 years ago
parent
commit
c2dd250181
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      CMakeLists.txt

+ 1
- 3
CMakeLists.txt View File

@@ -15,7 +15,7 @@


cmake_minimum_required(VERSION 3.14) cmake_minimum_required(VERSION 3.14)
project (GraphEngine[CXX]) project (GraphEngine[CXX])
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0) add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0)


set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
@@ -94,8 +94,6 @@ else()
endif() endif()


# add compile flags # add compile flags
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-std=c++11" SUPPORT_CXX11)
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
message("Build in Debug mode") message("Build in Debug mode")
set(CMAKE_C_FLAGS "-O0 -g -Wall -fstack-protector-all -Wl,-z,relro,-z,now,-z,noexecstack -pipe -fPIC ${CMAKE_C_FLAGS}") set(CMAKE_C_FLAGS "-O0 -g -Wall -fstack-protector-all -Wl,-z,relro,-z,now,-z,noexecstack -pipe -fPIC ${CMAKE_C_FLAGS}")


Loading…
Cancel
Save