Skip to content
Snippets Groups Projects
  1. Jul 22, 2015
    • Brad King's avatar
      OS X: Use -iframework with AppleClang only on version >= 4.2 · e68f0cb3
      Brad King authored
      Since commit v3.1.0-rc1~564^2 (OS X: Use -iframework for system
      framework directories, 2014-05-05) we test the version of Clang to see
      if it supports -iframework.  Fix the version test used for AppleClang
      since it uses a different version scheme than upstream Clang.
      e68f0cb3
  2. Jul 21, 2015
  3. Jul 19, 2015
    • Stephen Kelly's avatar
      KDE4: Find the Internal package with NO_POLICY_SCOPE. · 4572d8b3
      Stephen Kelly authored
      If someone in KDE wants to port away from OLD policies, they might want to do
      so one policy at a time.  This patch will allow them to use
      
        find_package(KDE4 NO_POLICY_SCOPE)
      
      in callers to get around the CMP0011 warning, while still getting the policy
      settings contained within.
      4572d8b3
  4. Jul 17, 2015
    • Brad King's avatar
      CMakeExpandImportedTargets: Document as deprecated · 0fcbd704
      Brad King authored
      The module is not needed anymore for try_compile or try_run.  It cannot
      be used with CMP0022 NEW behavior due to generator expressions in
      INTERFACE_LINK_LIBRARIES, so document it as deprecated.  Whatever
      problems other than try_compile and try_run anyone tried to solve with
      this module will have to be addressed another way.
      0fcbd704
  5. Jul 15, 2015
  6. Jul 14, 2015
  7. Jul 13, 2015
  8. Jul 10, 2015
  9. Jul 09, 2015
  10. Jul 08, 2015
  11. Jul 06, 2015
    • Brad King's avatar
      Add rudimentary support for the Apple Swift language with Xcode · bf112531
      Brad King authored
      Allow the `Swift` language to be enabled with the Xcode generator for
      Xcode >= 6.1.  Reject it on other generators and with older Xcode
      versions.  Since Apple is the only vendor implementing the language
      right now, the compiler id can be just `Apple`.
      bf112531
    • James Johnston's avatar
      ExternalProject: Added new USES_TERMINAL options · e4947639
      James Johnston authored and Brad King's avatar Brad King committed
      Added new USES_TERMINAL option to the ExternalProject_Add_Step
      function.  This option passes USES_TERMINAL to the underlying
      add_custom_command call so that the Ninja console pool is used.
      Also, corresponding new USES_TERMINAL_<step> options were added
      to the ExternalProject_Add function.
      
      Justification: if using Ninja with a CMake superbuild, it's often
      desirable to limit the superbuild to ONE sub-Ninja process at a
      time to avoid oversubscribing the CPU.  Using the console pool also
      makes it easy to monitor the progress of the sub-Ninja process.
      
      Independent USES_TERMINAL_<step> arguments are passed to
      ExternalProject_Add instead of one USES_TERMINAL argument that
      controls everything.  Users may wish to run some steps in parallel
      but not others (e.g. parallelize configure but not build).
      e4947639
    • Matt McCormick's avatar
      FindPythonLibs: Find the python.org libraries (#14809) · 02fd0356
      Matt McCormick authored and Brad King's avatar Brad King committed
      Address the test case
      
        cmake_minimum_required(VERSION 2.8)
        set(Python_ADDITIONAL_VERSIONS 3.4 3.5 3.6)
        find_package(PythonLibs 3 REQUIRED)
      
      with a Python 3.4.x .pkg installed from python.org on OSX.
      
      Temporarily set CMAKE_FIND_FRAMEWORK to LAST to avoid finding the
      system Python.h prematurely.
      
      Add directories inside the frameworks to the search list for the library
      as is done for the header.
      02fd0356
    • Bill Hoffman's avatar
      Windows: Optionally generate DLL module definition files automatically · 8f86407c
      Bill Hoffman authored and Brad King's avatar Brad King committed
      Create target property WINDOWS_EXPORT_ALL_SYMBOLS to automatically
      generate a module definition file from MS-compatible .obj files and give
      it to the linker in order to export all symbols from the .dll part of a
      SHARED library.
      8f86407c
  12. Jul 02, 2015
  13. Jun 30, 2015
    • Betsy McPhail's avatar
      ctest: Optionally avoid starting tests that may exceed a given CPU load · f62d301b
      Betsy McPhail authored and Brad King's avatar Brad King committed
      Add a TestLoad setting to CTest that can be set via a new --test-load
      command-line option, CTEST_TEST_LOAD variable, or TEST_LOAD option to
      the ctest_test command.  Teach cmCTestMultiProcessHandler to measure
      the CPU load and avoid starting tests that may take more than the
      spare load currently available.  The expression
      
       <current_load> + <test_processors> <= <max-load>
      
      must be true to start a new test.
      
      Co-Author: Zack Galbreath <zack.galbreath@kitware.com>
      f62d301b
    • Brad King's avatar
      CMakeDetermineCompilerId: Use per-language regex to match Xcode compiler tool · 99d16038
      Brad King authored
      Move the Ld invocation match expression from CMakeDetermineCompilerId
      into CMakeDetermine{C,CXX,Fortran}Compiler so that it can be specified
      on a per-language basis.
      99d16038
  14. Jun 29, 2015
  15. Jun 26, 2015
    • Brad King's avatar
      VS: Add /machine: flag to Librarian tool (#11240) · 806609c7
      Brad King authored
      If a Windows resource (.rc) source file is included in a STATIC library,
      the VS "link" tool will process the compiled ".res" file and needs to know
      the target architecture.  Without it, we may get a LNK4068 warning and
      possibly a LNK1112 error.  Add /machine: to the default static library
      flags to give the link tool the information it needs.
      806609c7
  16. Jun 25, 2015
  17. Jun 23, 2015
  18. Jun 18, 2015
    • James Johnston's avatar
      Embarcadero: Run at most one linker invocation at a time (#15620) · 078b60f0
      James Johnston authored and Brad King's avatar Brad King committed
      At least some versions (e.g. C++ Builder 5) of the bcc32 linker are known to
      write temporary files with a constant name to the current directory (e.g.
      "turboc.$ln").  (This can be verified by using Process Monitor to watch the
      file writes that bcc32 / ilink32 / implib make).  This causes problems with
      some generators that keep a constant current directory and run concurrent
      linkers.
      
      For example, the Ninja generator, by default, always has the current directory
      set to the top of the build tree - resulting in conflicts between the linkers
      that are simultaneously trying to write to "turboc.$ln".  Symptoms include
      direct errors regarding the "turboc.$ln" file, or later build steps failing due
      to corrupted output from previous links that happened to link "successfully."
      
      This is not a problem for the Borland Makefiles generator which does not
      run jobs in parallel.  For the Ninja generator, work around this problem
      by using a link job pool of size 1.
      078b60f0
    • Brad King's avatar
      Add support for Concurrent Fortran 77 Compiler · 7cd539b1
      Brad King authored
      
      The Concurrent Fortran compiler (ccur.com) is available on Linux and can
      be used much like the GNU Fortran compiler.  Currently it has no
      preprocessor symbols to identify it so we need to detect it by matching
      compiler output.
      
      Suggested-by: default avatarAnthony Ette <Anthony.R.Ette@controlsdata.com>
      7cd539b1
    • Brad King's avatar
      CMakeDetermineCompilerId: Try matching compiler output to detect id · 0d204c1c
      Brad King authored
      Some compilers can only be distinguished by their compilation output
      rather than preprocessor symbols or special flags.  Add infrastructure
      to determine the compiler id by matching output.
      0d204c1c
    • Brad King's avatar
      CMakeDetermineCompilerId: Refactor id build/check loop logic · 5f0dad75
      Brad King authored
      Callers of CMAKE_DETERMINE_COMPILER_ID initialize the
      CMAKE_${lang}_COMPILER_ID to unset so we can check it at the end of each
      loop iteration instead of the beginning.  This approach allows us to
      break out of the loop as soon as we succeed.  It will also allow checks
      to be added in more places within the loop later.
      5f0dad75
    • Brad King's avatar
      CMakeDetermineCompilerId: Optionally try some flags before no flags · c65a060e
      Brad King authored
      Teach CMAKE_DETERMINE_COMPILER_ID to optionally try detecting the
      compiler id using some given flags before trying to detect it with no
      special flags.  This will be useful for Fortran detection to distinguish
      some compilers that use the preprocessors of others but have no macro of
      their own by getting verbose output.
      c65a060e
    • Alex Turbov's avatar
      GNUInstallDirs: Add special cases for certain prefixes · c8bd37ec
      Alex Turbov authored and Brad King's avatar Brad King committed
      Teach the module to handle SYSCONFDIR and LOCALSTATEDIR properly if
      CMAKE_INSTALL_PREFIX is set to `/` or `/usr` -- i.e. as expected by GNU
      Coding Standard (i.e. set SYSCONFDIR to `/etc` and `LOCALSTATEDIR` to
      `/var`).  Also if CMAKE_INSTALL_PREFIX is set to /opt/pkg, `SYSCONFDIR`
      must be set to `/etc/opt/pkg` and `LOCALSTATEDIR` to `/var/opt/pkg`
      according to FHS.
      c8bd37ec
  19. Jun 16, 2015
Loading