diff --git a/CMakeExternals/Poco.cmake b/CMakeExternals/Poco.cmake index 6d82b4b5be..8b8920b547 100644 --- a/CMakeExternals/Poco.cmake +++ b/CMakeExternals/Poco.cmake @@ -1,44 +1,45 @@ #----------------------------------------------------------------------------- # Poco #----------------------------------------------------------------------------- if(MITK_USE_Poco) # Sanity checks if(DEFINED Poco_DIR AND NOT EXISTS ${Poco_DIR}) message(FATAL_ERROR "Poco_DIR variable is defined but corresponds to non-existing directory") endif() set(proj Poco) set(proj_DEPENDENCIES ) set(${proj}_DEPENDS ${proj}) if(NOT DEFINED ${proj}_DIR) set(patch_cmd ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_LIST_DIR}/PatchPoco-1.5.2-rc3.cmake) ExternalProject_Add(${proj} SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}-src BINARY_DIR ${proj}-build PREFIX ${proj}-cmake URL ${MITK_THIRDPARTY_DOWNLOAD_PREFIX_URL}/poco-1.5.2-rc3.tar.gz URL_MD5 3651530070a6fce1db0e9ba17ff6c01e INSTALL_DIR ${proj}-install PATCH_COMMAND ${patch_cmd} CMAKE_GENERATOR ${gen} CMAKE_ARGS ${ep_common_args} -DCMAKE_INSTALL_PREFIX:PATH= -DCMAKE_INSTALL_NAME_DIR:STRING=/lib + -DCMAKE_INSTALL_RPATH:STRING=/lib DEPENDS ${proj_DEPENDENCIES} ) set(${proj}_DIR ${CMAKE_CURRENT_BINARY_DIR}/${proj}-install) else() mitkMacroEmptyExternalProject(${proj} "${proj_DEPENDENCIES}") endif() endif()