• Brad King's avatar
    OS X: Detect implicit linker framework search paths · cc676c3a
    Brad King authored
    Previously we hard-coded a list of implicit framework directories but
    did not account for CMAKE_OSX_SYSROOT or for changes to the list across
    OS X versions.  Instead we should automatically detect the framework
    directories for the active toolchain.
    
    The parent commit added the "-Wl,-v" option to ask "ld" to print its
    implicit directories.  It displays a block such as:
    
     Framework search paths:
    	/...
    
    Parse this block to extract the list of framework directories.
    
    Detection may fail on toolchains that do not list their framework
    directories, such as older OS X linkers.  Always treat the paths
    
     <sdk>/Library/Frameworks
     <sdk>/System/Library/Frameworks
     <sdk>/Network/Library/Frameworks # Older OS X only
     /System/Library/Frameworks
    
    as implicit.  Note that /System/Library/Frameworks should always be
    considered implicit so that frameworks CMake finds there will not
    override the SDK copies.
    cc676c3a
Name
Last commit
Last update
Docs Loading commit data...
Example Loading commit data...
Modules Loading commit data...
Source Loading commit data...
Templates Loading commit data...
Tests Loading commit data...
Utilities Loading commit data...
.gitattributes Loading commit data...
.hooks-config.bash Loading commit data...
CMakeCPack.cmake Loading commit data...
CMakeCPackOptions.cmake.in Loading commit data...
CMakeGraphVizOptions.cmake Loading commit data...
CMakeLists.txt Loading commit data...
CMakeLogo.gif Loading commit data...
CTestConfig.cmake Loading commit data...
CTestCustom.cmake.in Loading commit data...
CTestCustom.ctest.in Loading commit data...
ChangeLog.manual Loading commit data...
ChangeLog.txt Loading commit data...
CompileFlags.cmake Loading commit data...
Copyright.txt Loading commit data...
DartConfig.cmake Loading commit data...
DartLocal.conf.in Loading commit data...
Readme.txt Loading commit data...
bootstrap Loading commit data...
cmake_uninstall.cmake.in Loading commit data...
configure Loading commit data...
doxygen.config Loading commit data...