Skip to content

Commit

Permalink
set c++ standard to c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Sep 6, 2020
1 parent e527581 commit 0613c20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.1)

project(onnx_optimizer C CXX)

# Set C++11 as standard for the whole project
if(NOT MSVC)
set(CMAKE_CXX_STANDARD 11)
endif(NOT MSVC)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

set(ONNX_ROOT ${PROJECT_SOURCE_DIR}/third_party/onnx)
Expand Down

0 comments on commit 0613c20

Please sign in to comment.