From dca9c7bb6d6396612599f26f6882405de8d3e77e Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Sun, 30 Sep 2018 08:04:20 +0000 Subject: [PATCH] test=develop --- cmake/configure.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/configure.cmake b/cmake/configure.cmake index e9852f00b1..030a48e66b 100644 --- a/cmake/configure.cmake +++ b/cmake/configure.cmake @@ -16,6 +16,11 @@ if(NOT WITH_PYTHON) add_definitions(-DPADDLE_NO_PYTHON) endif(NOT WITH_PYTHON) +if(APPLE) + set(ENV{CMAKE_FIND_FRAMEWORK} LAST) + set(ENV{CMAKE_FIND_APPBUNDLE} LAST) +endif(APPLE) + if(WITH_DSO) add_definitions(-DPADDLE_USE_DSO) endif(WITH_DSO) -- GitLab