"Fossies" - the Fresh Open Source Software Archive

Member "QGIS-final-3_10_1/mac/cmake/0qgis.cmake.in" (6 Dec 2019, 1336 Bytes) of package /linux/misc/QGIS-final-3_10_1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # 0qgis - fixup install_names for @loader_path
    2 # ! cmakecache vars not available to external scripts
    3 #   so we configure it first to do substitutions
    4 #   make sure to use @varname@
    5 
    6 # kill boolean warnings
    7 CMAKE_POLICY (SET CMP0012 NEW)
    8 
    9 INCLUDE ("@CMAKE_BINARY_DIR@/mac/0vars.cmake")
   10 INCLUDE ("@CMAKE_SOURCE_DIR@/cmake/MacBundleMacros.cmake")
   11 
   12 # assume all install_names start with CMAKE_INSTALL_NAME_DIR
   13 # so we don't have to extract it from binaries
   14 # leave main qgis executable and qgis_help with executable_paths
   15 
   16 IF (@OSX_HAVE_LOADERPATH@)
   17     MESSAGE (STATUS "Updating QGIS library paths...")
   18     # inter-library links - do all combos, many will be noops
   19     FOREACH (QL ${QGFWLIST})
   20         GET_INSTALL_NAME ("${QFWDIR}/${QL}.framework/${QL}" ${QL}.framework QQ)
   21         SET (QFW_CHG "${QQ}")
   22         UPDATEQGISPATHS ("${QFW_CHG}" ${QL})
   23         # change id of the framework
   24         IF (NOT @QGIS_MACAPP_INSTALL_DEV@)
   25             EXECUTE_PROCESS(COMMAND install_name_tool -id "${ATEXECUTABLE}/${QGIS_FW_SUBDIR}/${QL}.framework/${QL}" "${QFWDIR}/${QL}.framework/${QL}")
   26         ENDIF ()
   27     ENDFOREACH (QL)
   28     FOREACH (QLIB ${QGLIBLIST})
   29         GET_INSTALL_NAME ("${QLIBDIR}/${QLIB}" ${QLIB} QQ)
   30         SET (QLIB_CHG "${QQ}")
   31         UPDATEQGISPATHS ("${QLIB_CHG}" ${QLIB})
   32     ENDFOREACH (QLIB)
   33 ENDIF (@OSX_HAVE_LOADERPATH@)