diff --git a/paddle/contrib/inference/CMakeLists.txt b/paddle/contrib/inference/CMakeLists.txt index 25b11abf2e57dd6a3f6148801079255a42050050..9c55f189bcc5cbf0ce84f11e9653fa20b84a51f7 100644 --- a/paddle/contrib/inference/CMakeLists.txt +++ b/paddle/contrib/inference/CMakeLists.txt @@ -13,6 +13,10 @@ # limitations under the License. # +if(APPLE) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=pessimizing-move") +endif(APPLE) + function(inference_api_test TARGET_NAME TEST_SRC) set(options "") set(oneValueArgs "")