1. 12 Jun, 2007 1 commit
    • Alexander Neundorf's avatar
      · df1edcb9
      Alexander Neundorf authored
      ENH: first include the processor specific file, then the compiler file, this
      way the specific hardware file can set variables which can be used in the
      toolchain rules (like CMAKE_C_COMPILE_OBJECT etc.)
      
      Alex
      df1edcb9
  2. 11 Jun, 2007 3 commits
    • Alexander Neundorf's avatar
      · 6c02ec1a
      Alexander Neundorf authored
      STYLE: add a comment about SetLanguageEnabled()
      -add a Generic.cmake for target platforms without operating system
      
      Alex
      6c02ec1a
    • Alexander Neundorf's avatar
      · 422dc631
      Alexander Neundorf authored
      ENH: split cmGlobalGenerator::SetLanguageEnabled() in two parts, where the
      second part copies the values from the cmake variables into internal maps.
      So this can now be done after the compiler-specific information has been
      loaded, which can now overwrite more settings.
      
      Alex
      422dc631
    • Brad King's avatar
  3. 08 Jun, 2007 2 commits
    • Alexander Neundorf's avatar
      · 79077f83
      Alexander Neundorf authored
      ENH: more consistence among the X11 components
      
      Alex
      79077f83
    • Alexander Neundorf's avatar
      · dddc9e31
      Alexander Neundorf authored
      ENH: patch from #5054: also search for QtUitoolsd lib
      
      Alex
      dddc9e31
  4. 07 Jun, 2007 1 commit
    • Alexander Neundorf's avatar
      · b956fc24
      Alexander Neundorf authored
      STYLE: remove out commented code
      
      Alex
      b956fc24
  5. 05 Jun, 2007 3 commits
    • Alexander Neundorf's avatar
      · eab5a435
      Alexander Neundorf authored
      ENH: also load a processor-specific file if exists
      -also try the basename file if the compiler id file doesn't exist
      -don't rely so much on the CMAKE_TOOLCHAIN_FILE
      
      Alex
      eab5a435
    • Alexander Neundorf's avatar
      · 6989f800
      Alexander Neundorf authored
      COMP: don't use stdio, it can fail on some embedded targets (sdcc)
      
      Alex
      6989f800
    • Alexander Neundorf's avatar
      · 44214750
      Alexander Neundorf authored
      COMP: make the new check_type_size work with the HPUX cc compiler: const doesn't exist there
      
      Alex
      44214750
  6. 04 Jun, 2007 1 commit
  7. 01 Jun, 2007 2 commits
    • Alexander Neundorf's avatar
      · f94b8cfd
      Alexander Neundorf authored
      COMP: fix warnings on some machines where some X libs apparently don't
      really work by reverting X11_LIBRARIES back to the old version
      -add some more X11_xxx_FOUND variables
      -reformat comments at the top
      -always use IF(INCLUDE_DIR and LIB) for setting FOUND to TRUE
      
      Alex
      f94b8cfd
    • Alexander Neundorf's avatar
      · eddf1cf3
      Alexander Neundorf authored
      ENH: improve TRY_RUN() for crosscompiling: instead of just failing, it now
      creates two cache variables, one for the RUN_RESULT, one for the RUN_OUTPUT
      (if required), which can be set or preset by the user. It has now also two
      new arguments: RUN_OUTPUT_VARIABLE and COMPILE_OUTPUT_VARIABLE (the old
      OUTPUT_VARIABLE merges both), so if only COMPILE_OUTPUT_VARIABLE is used the
      run time output of the TRY_RUN is unused and the user doesn't have to care
      about the output when crosscompiling. This is now used in FindThreads.cmake,
      CheckC/CXXSourceRuns.cmake and TestBigEndian.cmake, which used the output
      only for the logfile (compile output is still there). Test/TryCompile/ now
      also tests the behaviour of OUTPUT_VARIABLE, RUN_OUTPUT_VARIABLE and
      COMPILE_OUTPUT_VARIABLE.
      
      Alex
      eddf1cf3
  8. 30 May, 2007 1 commit
    • Alexander Neundorf's avatar
      · 5a6a3cd8
      Alexander Neundorf authored
      ENH: mostly synced with FindX11.cmake from KDE svn: now also searches for a
      lot of additional X11 libs, like Xv, Xau, Xrandr and others
      
      Alex
      5a6a3cd8
  9. 29 May, 2007 1 commit
    • Alexander Neundorf's avatar
      · eed7c8de
      Alexander Neundorf authored
      ENH: always provide CMAKE_SYSTEM_XXX() and MAKE_HOST_SYSTEM_XXX() variables,
      so when cross compiling the build host platform can be tested
      
      Alex
      eed7c8de
  10. 25 May, 2007 2 commits
    • Alexander Neundorf's avatar
      · 55f11b34
      Alexander Neundorf authored
      ENH: add option to FILE(STRINGS NO_HEX_CONVERSION) to disable automatic
      conversion of hex and srec files to binary.
      Without this automatic conversion, everywhere where a compiled file is parsed for strings the
      a file(HEX2BIN somefile binfile) command has to be added otherwise it will
      not work for these compilers. I tried this with DetermineCompiler and
      CheckTypeSize and nobody will do this except the users who work with such
      compilers. For them it will break if they don't add this conversion command
      in all these places.
      If FILE(STRINGS) is used with a text file, it
      will in most cases still work as expected, since it will only convert hex
      and srec files. If a user actually wants to get text out of hex files, he
      knows what he's doing and will see the hint in the documentation.
      
      Anyway, it should work without having to create a temporary file, will work
      on this later.
      
      Alex
      55f11b34
    • Alexander Neundorf's avatar
      · f4eb5418
      Alexander Neundorf authored
      ENH: make the compiler id detection work, even if the output file name of
      the compiler is completely unknown and even if it produces intel hex or
      motorola s-record files, with test
      
      Alex
      f4eb5418
  11. 24 May, 2007 4 commits
    • Alexander Neundorf's avatar
      · c9aecb91
      Alexander Neundorf authored
      STYLE: remove debug output, fix indentation
      the tests run again successfully, but since CheckTypeSize will switch to a
      TRY_COMPILE soon I will look at it again after this change
      
      Alex
      c9aecb91
    • Alexander Neundorf's avatar
      · 504ea6df
      Alexander Neundorf authored
      COMP: try to fix the test failures on dash2
      
      Alex
      504ea6df
    • Alexander Neundorf's avatar
      · 8fb8a44f
      Alexander Neundorf authored
      ENH: add compiler id for sdcc
      
      Alex
      8fb8a44f
    • Alexander Neundorf's avatar
      · e10e3bc8
      Alexander Neundorf authored
      ENH: add compiler id for IAR compiler (http://www.iar.com/)
      ENH: don't run endian test again if the variable is already set
      
      Alex
      e10e3bc8
  12. 23 May, 2007 1 commit
  13. 22 May, 2007 2 commits
    • Alexander Neundorf's avatar
      · 6e2fd2c2
      Alexander Neundorf authored
      BUG: now the toolchain file is configured into the buildtree, otherwise e.g.
      CMAKE_SOURCE_DIR can't be used there
      ENH: modify CMakeCCompilerId.c and .h so that sdcc can compile them. As they
      were the preprocessor produced:
      
       9 "test.c"
      static char const info_compiler[] = "INFO:compiler["
      # 40 "test.c"
      ""
      
      "]";
      
      and the mixing of the preprocessing directives and the string constants
      didn't work.
      
      Alex
      6e2fd2c2
    • Alexander Neundorf's avatar
      · 6be930f0
      Alexander Neundorf authored
      STYLE: move the two CMAKE_SHARED_LIBRARYC/CXX_FLAGS for gcc from
      CMakeGenericSystem.cmake to gcc.cmake
      
      Alex
      6be930f0
  14. 21 May, 2007 3 commits
    • Alexander Neundorf's avatar
      · 71359f5b
      Alexander Neundorf authored
      STYLE: use a separate source file for generating CMakeSystem.cmake if CMAKE_TOOLCHAIN_FILE is used
      
      Alex
      71359f5b
    • Alexander Neundorf's avatar
      · c8dd1caf
      Alexander Neundorf authored
      BUG: don't fail if a compiler is given in CMAKE_C/CXX_COMPILER but it can't
      be found in the path
      
      Alex
      c8dd1caf
    • Alexander Neundorf's avatar
      · 3b4aa3bf
      Alexander Neundorf authored
      BUG: always search for ar, ranlib, etc. except under MSVC -> this should fix the mingw fortran test
      -also generate the fortran test with the kdevelop generator
      
      Alex
      3b4aa3bf
  15. 20 May, 2007 1 commit
  16. 18 May, 2007 6 commits
  17. 17 May, 2007 5 commits
    • Alexander Neundorf's avatar
      ENH: fail if install_name_tool wasn't found · ba2988e4
      Alexander Neundorf authored
      Alex
      ba2988e4
    • Brad King's avatar
      58debfd6
    • Alexander Neundorf's avatar
      · 61d3444f
      Alexander Neundorf authored
      ENH: merge CMake-CrossCompileBasic to HEAD
      -add a RESULT_VARIABLE to INCLUDE()
      -add CMAKE_TOOLCHAIN_FILE for specifiying your (potentially crosscompiling) toolchain
      -have TRY_RUN() complain if you try to use it in crosscompiling mode (which were compiled but cannot run on this system)
      -use CMAKE_EXECUTABLE_SUFFIX in TRY_RUN(), probably TRY_RUN won't be able to
      run the executables if they have a different suffix because they are
      probably crosscompiled, but nevertheless it should be able to find them
      -make several cmake variables presettable by the user: CMAKE_C/CXX_COMPILER, CMAKE_C/CXX_OUTPUT_EXTENSION, CMAKE_SYSTEM_NAME, CMAKE_SYSTEM_INFO_FILE
      -support prefix for GNU toolchains (arm-elf-gcc, arm-elf-ar, arm-elf-strip etc.)
      -move ranlib on OSX from the file command to a command in executed in cmake_install.cmake
      -add support for stripping during install in cmake_install.cmake
      -split out cl.cmake from Windows-cl.cmake, first (very incomplete) step to support MS crosscompiling tools
      -remove stdio.h from the simple C program which checks if the compiler works, since this may not exist for some embedded platforms
      -create a new CMakeFindBinUtils.cmake which collects the search fro ar, ranlib, strip, ld, link, install_name_tool and other tools like these
      -add support for CMAKE_FIND_ROOT_PATH for all FIND_XXX commands, which is a
      list of directories which will be prepended to all search directories, right
      now as a cmake variable, turning it into a global cmake property may need
      some more work
      -remove cmTestTestHandler::TryExecutable(), it's unused
      -split cmFileCommand::HandleInstall() into slightly smaller functions
      
      Alex
      61d3444f
    • Bill Hoffman's avatar
      ENH: fix up compiler id to be more robust · 871f7cf2
      Bill Hoffman authored
      871f7cf2
    • Bill Hoffman's avatar
      0c713090
  18. 16 May, 2007 1 commit