From cf8ef87ead302b0b45c34817b860791576d8be5e Mon Sep 17 00:00:00 2001 From: Helix002 <89019923+Helix002@users.noreply.github.com> Date: Fri, 8 Oct 2021 13:52:20 +0800 Subject: [PATCH] Update CMakeLists.txt (#3763) --- deploy/cpp_infer/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/cpp_infer/CMakeLists.txt b/deploy/cpp_infer/CMakeLists.txt index 4f2dc88a..5e009f98 100644 --- a/deploy/cpp_infer/CMakeLists.txt +++ b/deploy/cpp_infer/CMakeLists.txt @@ -71,7 +71,7 @@ else() if(WITH_MKL) set(FLAG_OPENMP "-fopenmp") endif() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -o3 ${FLAG_OPENMP} -std=c++11") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O3 ${FLAG_OPENMP} -std=c++11") set(CMAKE_STATIC_LIBRARY_PREFIX "") message("cmake cxx flags" ${CMAKE_CXX_FLAGS}) endif() -- GitLab