Skip to content

Commit

Permalink
have no idea why cmake_cxx_standard doesn't work suddenly
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Jul 31, 2019
1 parent b80ab3c commit 29a6a99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ include(cmake/flatbuffers.cmake)
configure_flatbuffers()

if (${CMAKE_SYSTEM_NAME} STREQUAL "Android")
set (CMAKE_CXX_STANDARD 17)

add_compile_options(-Os)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
if (${DNN_READ_ONNX})
include(cmake/onnx.cmake)
configure_onnx()
Expand Down

0 comments on commit 29a6a99

Please sign in to comment.