1. 21 Jun, 2016 1 commit
  2. 25 May, 2016 1 commit
  3. 08 Apr, 2016 2 commits
  4. 08 Mar, 2016 1 commit
  5. 19 Jan, 2016 1 commit
  6. 31 Jul, 2015 2 commits
    • Bill Somerville's avatar
      GetPrerequisites: Optionally filter "objdump" output for speed · 5d0a8b1a
      Bill Somerville authored
      As dumpbin.exe is no longer reliable for gcc libraries on MinGW because
      it crashes on many common libraries like libgcc_s and libgfortran it is
      now necessary too resort to using objdump for DLL dependency walking.
      Using objdump has a secondary problem in that it generates a lot of
      output for large libraries and causes fixup_bundle() to take many
      minutes to process what took fractions of a second with
      "dumpbin.exe /dependents".
      
      Add a 'grep' pre-filter in the execute_process() command pipeline to
      reduce this output to a minimum for a several orders of magnitude speed
      up.  If grep is not available just use the full output.
      
      As there does not seem to be a reliable way of detecting MinGW, callers
      of fixup_bundle() may have to set the variable gp_tool to "objdump" if
      dumpbin.exe is installed on the build machine to stop it using the
      broken MS dumpbin.exe for library dependency walking.
      5d0a8b1a
    • Bill Somerville's avatar
      GetPrerequisites: Add error checks for execute_process() calls · afb674ab
      Bill Somerville authored
      Add return status checks to external command invocations so that they do
      not fail silently producing incomplete install packages.
      afb674ab
  7. 27 Feb, 2015 1 commit
  8. 23 Feb, 2015 1 commit
    • Marcus Meissner's avatar
      GetPrerequisites: Update output matching for newer 'file' versions · fe558718
      Marcus Meissner authored
      Detect PIE binaries with newer 'file' (5.22).  It no longer prints
      "(uses shared libraries)" but does print "interpreter":
      
       # file 5.19
       $ file /usr/bin/su
       /usr/bin/su: ... shared object, ..., dynamically linked (uses shared libs), ...
      
       # file 5.22
       $ file /usr/bin/su
       /usr/bin/su: ... shared object, ..., dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, ...
      fe558718
  9. 25 Nov, 2014 2 commits
  10. 10 Oct, 2014 2 commits
    • Adam Strzelecki's avatar
      BundleUtilities: Resolve & replace @rpath placeholders · f7df82ac
      Adam Strzelecki authored
      This is done by gathering LC_RPATH commands for main bundle executable and
      using it for @rpath lookup in dependent frameworks.
      
      All functions that need to carry rpaths to now take optional <rpaths> argument.
      
      This enabled apps using @rpath to be bundled correctly, which will be necessary
      for upcoming Qt 5.4 that will use @rpath for all frameworks.
      
      Check that install_name_tool has -delete_rpath before using it.
      Otherwise it will fail with Xcode 3.x on 10.5 which has no -delete_rpath
      option for install_name_tool command, that was first introduced in 10.6
      SDK, even that 10.5 supports LC_RPATH and @rpath.
      f7df82ac
    • Adam Strzelecki's avatar
      GetPrerequisites: Make sure dyld placeholders are prefixes · 14bc686f
      Adam Strzelecki authored
      Mac OS X dyld placeholders should be always prefixes, otherwise this can lead
      to some undefined behavior.
      14bc686f
  11. 14 Apr, 2014 1 commit
  12. 14 Nov, 2013 1 commit
  13. 15 Oct, 2013 1 commit
  14. 16 Jul, 2013 1 commit
    • Brad King's avatar
      VS: Avoid leaking child process output back to IDE (#14266) · 45d2966d
      Brad King authored
      The VS IDE sets the environment variable VS_UNICODE_OUTPUT when
      executing build rules in order to tell MS tools to report output through
      a back door instead of through stdout/stderr.  Unset this variable so
      that CMake can capture or properly redirect all output from processes it
      runs even when running inside a VS IDE build environment.
      
      This generalizes the special cases fixed by commit 80d045b0 (When
      GetPrerequisites.cmake runs dumpbin while running inside the VS IDE...,
      2008-05-01) and commit 44aff73d (ExternalProject: Avoid bleed-through
      output when logging, 2011-01-06), so drop special handling of
      VS_UNICODE_OUTPUT in those instances.
      45d2966d
  15. 01 Mar, 2013 1 commit
  16. 28 Feb, 2013 2 commits
  17. 14 Aug, 2012 1 commit
  18. 13 Aug, 2012 1 commit
    • Kitware Robot's avatar
      Remove CMake-language block-end command arguments · 9db31162
      Kitware Robot authored
      Ancient versions of CMake required else(), endif(), and similar block
      termination commands to have arguments matching the command starting the
      block.  This is no longer the preferred style.
      
      Run the following shell code:
      
      for c in else endif endforeach endfunction endmacro endwhile; do
          echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
      done >convert.sed &&
      git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
      egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
      egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
      xargs -0 sed -i -f convert.sed &&
      rm convert.sed
      9db31162
  19. 05 Jul, 2012 1 commit
  20. 19 Jan, 2012 1 commit
    • Clinton Stimpson's avatar
      GetPrerequisites: Add support for @rpath on Mac OS X. · 880139a6
      Clinton Stimpson authored
      Change to consider a library embedded if it is found in a subdirectory relative to the
      using executable/library.  Previous commit considered them local.
      This case is encountered when @rpath is used with framework libraries, which are inside a directory tree.
      880139a6
  21. 21 Nov, 2011 1 commit
    • Clinton Stimpson's avatar
      GetPrerequisites: Add support for @rpath on Mac OS X. · 9a6b1022
      Clinton Stimpson authored
      Handle @rpath much like other Unixes, by doing a find_file with the given directories.
      
      Also, consider a library to be local if it is found in the same directory or a subdirectory relative to the user
      executable/library.  Previously, it was local only if found in the same directory.
      This case is encountered when @rpath is used with framework libraries, which are inside a directory tree.
      9a6b1022
  22. 23 Oct, 2011 1 commit
  23. 31 May, 2011 1 commit
  24. 27 May, 2011 1 commit
    • Clinton Stimpson's avatar
      BundleUtilities: Work w/ non .app exes on Mac (#12034) · 7ac7b437
      Clinton Stimpson authored
      Also add a test of BundleUtilities including an exe,
      some shared libs, a plugin, and a framework-style lib.
      
      This test presently runs (and this functionality works)
      on Linux, Mac and Windows.
      
      For now, the framework-style lib is built as a plain old
      shared lib because there is another yet-unresolved issue
      with local frameworks without rpaths on the Mac.
      7ac7b437
  25. 27 Oct, 2010 1 commit
    • David Partyka's avatar
      Fixes to GetPrerequisites for cygwin · 48e80eb7
      David Partyka authored
      Fix IF(WIN32) guards check for cygwin. Fix checking if the depenency is in a system location to use cygwin style paths on cygwin. Also change GetPrerequisites to switch gp_tool to tools that are very unlikely to be found, ie. dumpbin on Apple and otool on Windows/Unix.
      48e80eb7
  26. 26 Oct, 2010 3 commits
  27. 25 Oct, 2010 1 commit
  28. 07 Sep, 2010 1 commit
  29. 25 Aug, 2010 1 commit
  30. 09 Aug, 2010 1 commit
  31. 24 Jun, 2010 2 commits
  32. 23 May, 2010 1 commit