From 3c38acbfd1e08f9836792c4ef1bf7723d2f4d6af Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Mon, 14 Mar 2016 10:08:41 +0100 Subject: [PATCH] Split info message on mac. --- cmake/setup_custom_targets.cmake | 37 ++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/cmake/setup_custom_targets.cmake b/cmake/setup_custom_targets.cmake index e3782000ca..c3d9e58b4f 100644 --- a/cmake/setup_custom_targets.cmake +++ b/cmake/setup_custom_targets.cmake @@ -99,19 +99,6 @@ ADD_CUSTOM_TARGET(indent COMMENT "Indenting all files in the deal.II directories" ) -# -# Provide "relocate" target to run install_name_tool on all external libraries -# under ${DEAL_II_CPACK_EXTERNAL_LIBS_TREE} -# -IF(CMAKE_SYSTEM_NAME MATCHES "Darwin" AND - NOT "${DEAL_II_CPACK_EXTERNAL_LIBS_TREE}" STREQUAL "") - ADD_CUSTOM_TARGET(relocate - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} - COMMAND ./contrib/utilities/relocate_libraries.py - COMMENT "Running install_name_tool under ${DEAL_II_CPACK_EXTERNAL_LIBS_TREE}" - ) -ENDIF() - # # Provide an "info" target to print a help message: @@ -152,12 +139,30 @@ FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/print_info.cmake # prune_tests - remove all testsuite subprojects # # indent - indent all headers and source file +") + # -# relocate - (only available on Darwin machines) fix RPATH for external -# libraries, if packaging was requested +# Provide "relocate" target to run install_name_tool on all external libraries +# under ${DEAL_II_CPACK_EXTERNAL_LIBS_TREE} # +IF(CMAKE_SYSTEM_NAME MATCHES "Darwin" AND + NOT "${DEAL_II_CPACK_EXTERNAL_LIBS_TREE}" STREQUAL "") + ADD_CUSTOM_TARGET(relocate + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + COMMAND ./contrib/utilities/relocate_libraries.py + COMMENT "Running install_name_tool under ${DEAL_II_CPACK_EXTERNAL_LIBS_TREE}" + ) + FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/print_info.cmake + "# +# relocate - fix RPATH for external libraries, if packaging was requested +" + ) +ENDIF() + +FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/print_info.cmake +"# ###\")" - ) +) ADD_CUSTOM_TARGET(info COMMAND ${CMAKE_COMMAND} -P ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/print_info.cmake -- 2.39.5