|
|
|
@ -11,13 +11,13 @@ cc_library(paddle_fluid DEPS ${fluid_modules})
|
|
|
|
|
# Create shared library
|
|
|
|
|
cc_library(paddle_fluid_shared SHARED
|
|
|
|
|
SRCS io.cc
|
|
|
|
|
DEPS ARCHIVE_START ${GLOB_OP_LIB} ${FLUID_CORE_MODULES} ARCHIVE_END)
|
|
|
|
|
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)
|
|
|
|
|