1. 06 Mar, 2014 2 commits
  2. 17 Feb, 2014 1 commit
  3. 12 Feb, 2014 2 commits
  4. 09 Feb, 2014 2 commits
  5. 08 Feb, 2014 1 commit
  6. 07 Feb, 2014 3 commits
  7. 06 Feb, 2014 1 commit
    • Brad King's avatar
      Tests: Speed up RunCMake.CheckModules test · 78be3247
      Brad King authored
      Enable the C and CXX languages only in the test cases that really need
      them.  In the failure cases we do not get far enough to really use the
      languages, so skip enabling them.
      78be3247
  8. 05 Feb, 2014 1 commit
    • Stephen Kelly's avatar
      QtAutogen: Only add source files to the target if AUTORCC is ON. · 8f8edeb0
      Stephen Kelly authored
      The qtx_add_resources() macro adds the resource file to the output list
      to maintain file-level dependencies.  Having the qrc file in a target
      sources is a precondition for AUTORCC to function.
      
      When processing the source files of a target, only add the generated
      qrc_<file>.cpp to the target sources if AUTORCC is ON.  This avoids
      pre-porting conflict with the macro.
      
      Reported-by: Micha Hergarden
      8f8edeb0
  9. 04 Feb, 2014 1 commit
  10. 01 Feb, 2014 1 commit
  11. 29 Jan, 2014 3 commits
    • Stephen Kelly's avatar
      FindQt4: Make AUTOMOC work regardless which order Qt 4/5 is found. · 1fc9ecfa
      Stephen Kelly authored
      Commit 321e348e (QtAutogen: Use Qt 4 IMPORTED targets to find
      executable locations., 2014-01-24) attempted to fix this problem,
      but only solved it for a particular ordering of find_package for
      Qt 4 and Qt 5.
      
      Add a test to ensure that it works with both orderings.
      1fc9ecfa
    • Brad King's avatar
      project: Manage VERSION variables · 7e142c5a
      Brad King authored
      
      
      Teach the project() command to set variables
      
        {PROJECT,<PROJECT-NAME>}_VERSION{,_MAJOR,_MINOR,_PATCH,_TWEAK}
      
      holding the project version number and its components.  Add project()
      command option "VERSION" to specify the version explicitly, and default
      to the empty string when it is not given.
      
      Since this clears variables when no VERSION is given, this may change
      behavior for existing projects that set the version variables themselves
      prior to calling project().  Add policy CMP0048 for compatibility.
      Suggested-by: Alexander Neundorf's avatarAlex Neundorf <neundorf@kde.org>
      7e142c5a
    • Brad King's avatar
      project: Add optional LANGUAGES keyword · 16d040c9
      Brad King authored
      Teach the project() command to recognize an optional "LANGUAGES"
      keyword after the project name and prior to the list of languages.
      Do not allow multiple copies of the keyword.  If the keyword is
      specified and no languages are listed, imply NONE.
      16d040c9
  12. 28 Jan, 2014 4 commits
    • Brad King's avatar
      Cygwin: Avoid legacy warnings in RunCMake.CMP004[1235] tests · 5e4b8871
      Brad King authored
      Set the minimum required version of CMake high enough to avoid the
      warning for CMAKE_LEGACY_CYGWIN_WIN32.  The warning appears on stderr
      and breaks the expected output matching.
      5e4b8871
    • Stephen Kelly's avatar
      QtAutogen: Short-circut some logic when moc is not available. · f7ae1d8a
      Stephen Kelly authored
      This is the case when AUTOMOC is false.  This prevents creating rules
      to moc the files in the absense of moc.
      f7ae1d8a
    • Stephen Kelly's avatar
      QtAutogen: Use Qt 4 IMPORTED targets to find executable locations. · 321e348e
      Stephen Kelly authored
      Avoid using the moc from Qt 5 with Qt 4 based targets. Moc generates
      a version check to ensure that such generated code does not compile.
      
      The Qt4And5Automoc unit test should have been testing this, but it
      was not because the test was broken. In that unit test, moc was run
      on trivial files which have no significant content, and in particular
      no Q_OBJECT macro.  Therefore moc was generating empty files which
      do not even contain the version check.  Fix this by generating files
      for input to moc at cmake time.
      321e348e
    • Gereon Kremer's avatar
      ExternalProject: Add option GIT_SUBMODULES · 819015ef
      Gereon Kremer authored
      This option allows to filter the submodules that are checked out.
      Add a simple testcase for GIT_SUBMODULES option passing an empty list.
      819015ef
  13. 22 Jan, 2014 1 commit
  14. 21 Jan, 2014 3 commits
  15. 20 Jan, 2014 3 commits
    • Brad King's avatar
      cmake: Improve '-E create_symlink' edge case handling (#14713) · e0228e2b
      Brad King authored
      The logic added by commit ffc0b5e4 (Overwrite the symlink if it already
      exists, 2007-02-15) does not recognize and remove existing broken links
      before replacing them.  Improve the logic to remove any existing
      destination file or link (but not directory).  On failure, report an
      error message explaining why the existing path could not be removed or
      the new one could not be created.
      
      Add a RunCMake.CommandLine test to cover 'cmake -E' cases.  Start with
      test cases covering 'cmake -E create_symlink' behavior on UNIX platforms.
      e0228e2b
    • Brad King's avatar
      Tests/RunCMake: Add function to run a specified command-line · d4ca30ae
      Brad King authored
      Add a 'run_cmake_command' function that can be used by tests to run a
      given command-line and check the results rather than always running a
      CMake configuration process.  This can be used in the future to test
      'cmake -E' for example.
      d4ca30ae
    • Brad King's avatar
      392a6553
  16. 15 Jan, 2014 2 commits
  17. 14 Jan, 2014 1 commit
  18. 12 Jan, 2014 1 commit
  19. 11 Jan, 2014 1 commit
    • Stephen Kelly's avatar
      Tests: Fix find-package mode test. · dea71aae
      Stephen Kelly authored
      The all target was depending on the clean and pngtest targets, but
      when running the tests with -jN, those can be executed out of order.
      
      Make the main.o target depend on the clean target instead to fix
      this.
      dea71aae
  20. 10 Jan, 2014 1 commit
  21. 09 Jan, 2014 1 commit
  22. 08 Jan, 2014 4 commits