1. 08 Jul, 2015 1 commit
    • Brad King's avatar
      Check*CompilerFlag: Revert to previous method used to pass flags (#15641) · a639689c
      Brad King authored
      Since commit v3.3.0-rc1~397^2 (Check*CompilerFlag: Refactor method used
      to pass flags, 2015-02-24) these check modules pass the flags to the
      compiler front-end during linking as well as during compilation.  This
      breaks checks for flags like '-x c++' that are meant only for the
      compilation step.  Revert the change and add a test covering a
      compiler-only flag.
      a639689c
  2. 24 Feb, 2015 1 commit
    • Mark Abraham's avatar
      Check*CompilerFlag: Refactor method used to pass flags · 5d5067ae
      Mark Abraham authored
      Refactor the Check*CompilerFlag modules to pass the flags to
      Check*SourceCompiles using CMAKE_REQUIRED_FLAGS instead of
      CMAKE_REQUIRED_DEFINITIONS.  Both end up being used, but the variable
      for "FLAGS" is more precise.
      5d5067ae
  3. 15 Oct, 2013 1 commit
  4. 13 Aug, 2013 2 commits
  5. 25 Jul, 2013 1 commit
  6. 22 Apr, 2013 1 commit
  7. 13 Aug, 2012 2 commits
    • 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
    • Kitware Robot's avatar
      Convert CMake-language commands to lower case · 77543bde
      Kitware Robot authored
      Ancient CMake versions required upper-case commands.  Later command
      names became case-insensitive.  Now the preferred style is lower-case.
      
      Run the following shell code:
      
      cmake --help-command-list |
      grep -v "cmake version" |
      while read c; do
          echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
      done >convert.sed &&
      git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
      egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
      xargs -0 sed -i -f convert.sed &&
      rm convert.sed
      77543bde
  8. 26 Apr, 2012 1 commit
  9. 23 Feb, 2012 1 commit
  10. 12 Feb, 2012 1 commit
  11. 24 Aug, 2011 1 commit
  12. 23 Aug, 2011 1 commit
  13. 08 Aug, 2011 1 commit
  14. 04 Nov, 2010 1 commit
  15. 09 Aug, 2010 1 commit
  16. 01 Oct, 2009 1 commit
  17. 28 Sep, 2009 1 commit
    • Brad King's avatar
      Convert CMake non-find modules to BSD License · 3a666595
      Brad King authored
      This adds copyright/license notification blocks CMake's non-find
      modules.  Most of the modules had no notices at all.  Some had notices
      referring to the BSD license already.  This commit normalizes existing
      notices and adds missing notices.
      3a666595
  18. 18 Sep, 2009 1 commit
  19. 17 Sep, 2009 3 commits
    • Brad King's avatar
      Fix CHECK_(C|CXX)_COMPILER_FLAG for HP · 53fb07ef
      Brad King authored
      This compiler warns and returns 0 for unrecognized flags.  We fix the
      compiler flag check macros by looking for a warning in the output.
      See issue #9516.
      53fb07ef
    • Brad King's avatar
      Fix CHECK_(C|CXX)_COMPILER_FLAG for GNU and MSVC · 7e3d437d
      Brad King authored
      These compilers warn and return 0 for unrecognized flags.  We fix the
      compiler flag check macros by looking for a warning in the output.
      See issue #9516.
      7e3d437d
    • Brad King's avatar
      Cleanup generic compiler check macro documentation · 80af3ae3
      Brad King authored
      This commit improves formatting and style of the documentation for the
      general-purpose compiler check macros:
      
        CHECK_C_COMPILER_FLAG
        CHECK_C_SOURCE_COMPILES
        CHECK_C_SOURCE_RUNS
        CHECK_CXX_COMPILER_FLAG
        CHECK_CXX_SOURCE_COMPILES
        CHECK_CXX_SOURCE_RUNS
      
      This sytle is more consistent with CMake command documentation.
      It also looks nicer in the generated documentation text files.
      80af3ae3
  20. 18 Sep, 2006 1 commit