Skip to content
Snippets Groups Projects
  1. Aug 22, 2012
    • Brad King's avatar
      Cleanly enable a language in multiple subdirectories · ec22a9b5
      Brad King authored
      When a language is not enabled at the top level of a project but is
      enabled in multiple disjoint subdirectories we should re-use the
      CMake<lang>Compiler.cmake file from the first directory.  Load the file
      whenever it exists and is not left from a different version of CMake.
      ec22a9b5
    • Brad King's avatar
      VS: Detect the compiler id and tool location · 66cb3356
      Brad King authored
      Configure a hand-generated Visual Studio project to build the compiler id
      source file since we cannot run the compiler command-line tool directly.
      Add a post-build command to print out the full path to the compiler tool.
      Parse the full path to the compiler tool from the build output.
      66cb3356
    • Brad King's avatar
      VS10: Define CMAKE_VS_PLATFORM_TOOLSET variable · 89595d6b
      Brad King authored
      When the VS 10 generator selects a non-default PlatformToolset to
      specify for MSBuild, report the selected name in this variable.
      89595d6b
    • Brad King's avatar
      Xcode: Detect the compiler id and tool location · 965a69dc
      Brad King authored
      Configure a hand-generated Xcode project to build the compiler id source
      file since we cannot run the compiler command-line tool directly.  Add a
      post-build shell script phase to print out the compiler toolset build
      setting.  Run xcodebuild to compile the identification binary.  Parse
      the full path to the compiler tool from the xcodebuild output.
      965a69dc
    • Brad King's avatar
      CMakeDetermineCompilerId: Prepare to detect IDE compiler id · 9a9e1ee9
      Brad King authored
      Teach CMAKE_DETERMINE_COMPILER_ID to check for variable
      CMAKE_${lang}_COMPILER_ID_TOOL after CMAKE_DETERMINE_COMPILER_ID_BUILD
      to use as CMAKE_${lang}_COMPILER since it will not be known until after
      the IDE runs.
      
      In CMAKE_DETERMINE_COMPILER_ID_BUILD prepare a cascading "if" so we can
      use a generator-specific method to compile the identification source
      file.  Leave "if(0)" as a placeholder for now and put the direct
      compiler invocation in "else()".  After running the compiler to build
      the compiler identification source we file(GLOB) the list of output
      files as candidates for extracting the compiler information.  An IDE may
      create directories, so exclude exclude directories from this list.
      9a9e1ee9
    • Brad King's avatar
      Re-order C/C++/Fortran compiler determination logic · b8b5c834
      Brad King authored
      Re-organize CMakeDetermine(C|CXX|Fortran)Compiler.cmake to search for
      the compiler command-line tool only under generators for which it makes
      sense.  For the Visual Studio generators we do not expect to find the
      compiler tool from the environment, nor would we use the result anyway.
      
      Furthermore, set CMAKE_${lang}_COMPILER_ID_TEST_FLAGS only when it has a
      chance to be used.  Extract _CMAKE_TOOLCHAIN_LOCATION from the compiler
      path after running the compiler id step so in the future that step can
      help find the path to the compiler.
      b8b5c834
    • Patrick Gansterer's avatar
      VS: Cleanup AddPlatformDefinitions() of Visual Studio generators · 2c7a451d
      Patrick Gansterer authored and Brad King's avatar Brad King committed
      Move adding of definitions into cmGlobalVisualStudioGenerator to
      share code and avoid duplicate architecture string literals.
      2c7a451d
  2. Aug 15, 2012
  3. Aug 14, 2012
  4. Aug 13, 2012
  5. Aug 12, 2012
  6. Aug 11, 2012
  7. Aug 10, 2012
  8. Aug 09, 2012
Loading