1. 25 Jun, 2015 1 commit
    • Brad King's avatar
      cmTarget: Fix diagnostic of target_link_libraries in wrong directory (#15626) · 30c2e1dd
      Brad King authored
      Since commit v3.3.0-rc1~62^2~5 (cmTarget: Store only cmListFileContext
      for CMP0023 handling, 2015-05-18) a call to target_link_libraries on a
      target that was defined in another (non-ancestor) directory crashes
      because no execution context is left active.  Fix this by getting the
      execution context from the actual cmMakefile where the current
      target_link_libraries call takes place.  Test this by verifying that
      such calls correctly produce an error diagnostic instead of crashing.
      30c2e1dd
  2. 01 Jun, 2015 1 commit
  3. 29 May, 2015 1 commit
  4. 26 May, 2015 2 commits
    • Brad King's avatar
      Tests: Add case for rejecting $<TARGET_FILE:...> on an INTERFACE library · 89253992
      Brad King authored
      Add an explicit test for this existing error.  We already cover it for
      an OBJECT library but INTERFACE libraries are not allowed either.
      89253992
    • Brad King's avatar
      Honor visibility properties for all target types (#15556) · 700f1c3b
      Brad King authored
      The <LANG>_VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN were first
      merged in commit v2.8.12~322 (Merge topic 'VISIBILITY_PRESET-property',
      2013-06-05) but worked only for shared libraries and executables with
      exports.  Prior to commit v3.0.0-rc1~581^2 (GenerateExportHeader:
      Deprecate add_compiler_export_flags function., 2013-09-02) the
      add_compiler_export_flags function was used to add visibility flags to
      all targets.
      
      The visibility flags are useful for sources in all target types because
      they may be later linked into shared libraries or executables with
      exports.  Introduce policy CMP0063 to enable them for all target types
      while preserving compatibility with existing projects that do not expect
      this.
      700f1c3b
  5. 22 May, 2015 4 commits
  6. 21 May, 2015 1 commit
    • Brad King's avatar
      Revert "Qbs: Add new 'extra' generator for qbs project files" · deec97d8
      Brad King authored
      This reverts commit f85db2f3.
      
      Discussion by the QtCreator community at
      
        https://bugreports.qt.io/browse/QTCREATORBUG-13695
      
      raises concerns about this particular approach to working with CMake
      projects using QtCreator.  Also, the functionality and design of the QBS
      extra generator was never discussed on the CMake mailing list or with
      QtCreator developers.  There may be better ways to make the two tools
      work together.
      
      In order to avoid committing to long-term support of this generator
      prior to such discussion taking place, revert it from CMake for now.
      We may restore this or use an alternative design based on results of
      such discussion.
      deec97d8
  7. 20 May, 2015 1 commit
  8. 19 May, 2015 2 commits
  9. 18 May, 2015 2 commits
    • Stephen Kelly's avatar
    • Brad King's avatar
      Fix assertion failure on unmatched foreach in function (#15572) · 3a656065
      Brad King authored
      The lexical scope counting added by commit v3.2.0-rc1~332^2~1 (Track
      nested loop levels in CMake language with a stack of counters,
      2014-11-18) forgot to account for scopes popped by error messages about
      unclosed scopes.  Teach the error handler to pop the lexical scope it
      reports as unclosed.  Re-order the lexical scope RAII object to be
      inside the variable scope RAII object scope so that the lexical scope
      is fully closed before we check assertions about variable scopes.
      
      Extend the RunCMake.Syntax test with a case covering this.
      3a656065
  10. 17 May, 2015 1 commit
  11. 14 May, 2015 4 commits
  12. 13 May, 2015 1 commit
  13. 12 May, 2015 2 commits
  14. 08 May, 2015 2 commits
  15. 07 May, 2015 2 commits
  16. 06 May, 2015 1 commit
  17. 04 May, 2015 1 commit
    • Brad King's avatar
      Tests: Enable devenv tests on VS >= 10 · 562e69dd
      Brad King authored
      The VSExcludeFromDefaultBuild have not been enabled on VS >= 10 since
      commit v3.0.0-rc1~260^2~9 (Tests: Simplify VSExcludeFromDefaultBuild
      configuration, 2013-11-14).  Since commit v3.0.0-rc1~260^2~2 (VS: Add
      CMAKE_VS_(DEVENV|MSBUILD|MSDEV)_COMMAND variables, 2013-12-04) we can
      simply check the CMAKE_VS_DEVENV_COMMAND variable for a devenv tool
      to use for the test.
      562e69dd
  18. 30 Apr, 2015 2 commits
  19. 29 Apr, 2015 2 commits
  20. 27 Apr, 2015 2 commits
  21. 23 Apr, 2015 2 commits
    • Brad King's avatar
      Tests: Fix ExportImport on AIX with GCC · 4fc47424
      Brad King authored
      The iface_test_bld gets the excludedFromAll include directory with
      "-isystem" because it is added indirectly through an imported target.
      On AIX with GCC the -isystem flag causes sources to be preprocessed as:
      
        # 3 "/.../excludedFromAll.h" 2 3 4
      
      The flags after the file name are documented here:
      
        https://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html
      
      and the "4" flag says that following content is extern "C".  This
      causes the excludedFromAll function to be declared as a C symbol
      and not mangled for C++, which fails to link later because the
      symbol is really provided as C++.
      
      Work around this by setting the NO_SYSTEM_FROM_IMPORTED target property
      on iface_test_bld.  Somehow iface_test_exp does not end up with -isystem
      so we do not need this workaround for that target.
      4fc47424
    • Raffi Enficiaud's avatar
      CPackDeb: Add basic package tests · 75b0e167
      Raffi Enficiaud authored and Brad King's avatar Brad King committed
      Tests of generated component based deb packages with lintian and dpkg.
      Also includes basic file name check.
      75b0e167
  22. 22 Apr, 2015 1 commit
  23. 21 Apr, 2015 2 commits