Skip to content

Commit

Permalink
Fix CMAKE_CXX_FLAGS optimize flag (PaddlePaddle#14059)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirozy authored Oct 21, 2024
1 parent 9bb94f9 commit 4f625dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/cpp_infer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4f625dc

Please sign in to comment.