From 0564e74fe5d58b4a4a01d89a3401e68693bf425d Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Sat, 7 Apr 2018 23:38:35 -0700 Subject: [PATCH] Update --- paddle/fluid/inference/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/paddle/fluid/inference/CMakeLists.txt b/paddle/fluid/inference/CMakeLists.txt index 8171e7c11..4b1983963 100644 --- a/paddle/fluid/inference/CMakeLists.txt +++ b/paddle/fluid/inference/CMakeLists.txt @@ -13,11 +13,11 @@ cc_library(paddle_fluid_shared SHARED SRCS io.cc DEPS ${GLOB_OP_LIB} ${FLUID_CORE_MODULES}) set_target_properties(paddle_fluid_shared PROPERTIES OUTPUT_NAME paddle_fluid) -# if(NOT APPLE) -# # TODO(liuyiqun): Temporarily disable the link flag because it is not support on Mac. -# set(LINK_FLAGS "-Wl,--version-script ${CMAKE_CURRENT_SOURCE_DIR}/paddle_fluid.map") -# set_target_properties(paddle_fluid_shared PROPERTIES LINK_FLAGS "${LINK_FLAGS}") -# endif() +if(NOT APPLE) + # TODO(liuyiqun): Temporarily disable the link flag because it is not support on Mac. + set(LINK_FLAGS "-Wl,--version-script ${CMAKE_CURRENT_SOURCE_DIR}/paddle_fluid.map") + set_target_properties(paddle_fluid_shared PROPERTIES LINK_FLAGS "${LINK_FLAGS}") +endif() if(WITH_TESTING) add_subdirectory(tests/book) -- GitLab