git-svn-id: svn://db.shs.com.ru/libs@762 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -27,16 +27,16 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
target_link_libraries(${PROJECT_NAME} ${PIP_LIBRARY})
|
target_link_libraries(${PROJECT_NAME} ${PIP_LIBRARY})
|
||||||
|
|
||||||
# Apple crosscompiling rpath patch
|
# # Apple crosscompiling rpath patch
|
||||||
if (APPLE AND CMAKE_CROSSCOMPILING AND CMAKE_MACOSX_RPATH)
|
# if (APPLE AND CMAKE_CROSSCOMPILING AND CMAKE_MACOSX_RPATH)
|
||||||
foreach(_RP ${CMAKE_INSTALL_RPATH})
|
# foreach(_RP ${CMAKE_INSTALL_RPATH})
|
||||||
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
|
# add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
|
||||||
COMMAND "${CMAKE_INSTALL_NAME_TOOL}"
|
# COMMAND "${CMAKE_INSTALL_NAME_TOOL}"
|
||||||
"-add_rpath" "${_RP}"
|
# "-add_rpath" "${_RP}"
|
||||||
"$<TARGET_FILE_DIR:${PROJECT_NAME}>/$<TARGET_FILE_NAME:${PROJECT_NAME}>"
|
# "$<TARGET_FILE_DIR:${PROJECT_NAME}>/$<TARGET_FILE_NAME:${PROJECT_NAME}>"
|
||||||
COMMENT "Add to ${PROJECT_NAME} rpath \"${_RP}\"")
|
# COMMENT "Add to ${PROJECT_NAME} rpath \"${_RP}\"")
|
||||||
endforeach()
|
# endforeach()
|
||||||
endif()
|
# endif()
|
||||||
|
|
||||||
add_executable(cdutilstest "cdutilstest.cpp" "cdtest.h")
|
add_executable(cdutilstest "cdutilstest.cpp" "cdtest.h")
|
||||||
target_link_libraries(cdutilstest ${PIP_LIBRARY} ${PROJECT_NAME})
|
target_link_libraries(cdutilstest ${PIP_LIBRARY} ${PROJECT_NAME})
|
||||||
|
|||||||
Reference in New Issue
Block a user