1. 29 Oct, 2018 1 commit
    • Mateusz Zych's avatar
      MSVC: Respect CMAKE_RC_COMPILER and CMAKE_MT in vs_link_{dll,exe} · bd9bfc64
      Mateusz Zych authored
      CMake commands vs_link_dll and vs_link_exe, performing linking on MSVC,
      are responsible for calling resource compiler and manifest tool.
      
      Before this commit, both of these tools were called directly, with the
      expectation that they are available in the `PATH`. This has been fixed
      by respecting CMake variables `CMAKE_RC_COMPILER` and `CMAKE_MT`
      defining paths to these tools.
      
      Fixes: #17804
      bd9bfc64
  2. 29 Jun, 2017 2 commits
    • nolange's avatar
      Add a CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID variable · 0b1a2876
      nolange authored
      Compilers such as MSVC and IAR may have variants that target different
      architectures.  We have been using a `MSVC_<LANG>_ARCHITECTURE_ID`
      variable to hold this information for MSVC.  Add an alternative with a
      more general name (later we can port MSVC to it too).
      
      This additional information may be needed to generate proper invocations
      of the compiler based on its architecture variant.
      0b1a2876
    • nolange's avatar
      Store CMAKE_ASM_COMPILER_VERSION persistently · fea7d69d
      nolange authored
      We already do this for other languages like C and CXX.
      fea7d69d
  3. 03 Apr, 2017 1 commit
  4. 08 Mar, 2017 1 commit
  5. 13 Aug, 2012 1 commit
    • 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
  6. 30 Jan, 2011 1 commit
    • Alexander Neundorf's avatar
      Rework the way assembler is handled, use the C/CXX compiler by default · 4b40d429
      Alexander Neundorf authored
      This commit changes the way how the assembler support works in cmake.
      The language "ASM" now always uses the C/Cxx compiler instead
      of the assembler directly. This fixes #8392, assembler files are
      not preprocessed.
      If one wants to use the assembler directly, the specific
      assembler "dialect" has to be enabled. I.e. to get as/gas,
      you have to use now ASM-ATT, the same way for ASM_MASM and ASM_NASM.
      
      Implemented this now for gcc.
      SunStudio, IBM, HP and Intel still todo.
      
      Alex
      4b40d429
  7. 12 Jul, 2007 1 commit
  8. 11 Jul, 2007 2 commits
    • Alexander Neundorf's avatar
      16705a3e
    • Alexander Neundorf's avatar
      · bea1a5de
      Alexander Neundorf authored
      ENH: CMAKE_<LANG>_LINKER_PREFERENCE is now an integer priority, not a
      two-step priority (None or Prefered)
      Current order: ASM 0, C 10, Fortran 20, CXX 30, Java 40
      This is the same order as automake choses:
      http://www.gnu.org/software/automake/manual/html_node/How-the-Linker-is-Chosen.html
      
      This change should be backward compatible:
      if there is a project using fortran and CXX, they had to set the
      LINKER_LANGUAGE explicitely, otherwise cmake complained (but still generated
      the project files). Explicitely setting the linker language still overrides
      automatic detection.
      If somebody has a custom language for cmake and the PREFERENCE starts with
      "P", its changed to 100, which gives it preference over all other languages
      (except the other custom languages which have also "Prefered"). "None" is
      converted to 0.
      
      Alex
      bea1a5de
  9. 28 Jun, 2007 1 commit
    • Alexander Neundorf's avatar
      · 5b18b80b
      Alexander Neundorf authored
      ENH: initial support for assembler in cmake, needs testing by our users
      
      Alex
      5b18b80b