summaryrefslogtreecommitdiffstats
path: root/Source
Commit message (Collapse)AuthorAgeFilesLines
* VS: Simplify MSVC version reportingBrad King2012-08-309-14/+0
| | | | | | | | | Teach Windows-cl.cmake to use CMAKE_(C|CXX)_COMPILER_VERSION to set the "MSVC##" and MSVC_VERSION variables. It no longer needs the IDE generator to dictate the version or to detect the version by running the command-line tool for NMake and Ninja generators. Drop configuration of CMakeCPlatform.cmake and CMakeCXXPlatform.cmake from Windows-cl.cmake.in because all the results it saved are now cheap to compute every time.
* VS: Remove support for "free" version 2003 toolsBrad King2012-08-231-6/+0
| | | | | | | Several more recent Visual Studio Express editions are now available and they support debug builds. Simplify our VS platform files by removing support for these old tools. If anyone still uses them we can restore support with a more modern way to test for them.
* Document CMAKE_<LANG>_COMPILER_(ID|VERSION) valuesBrad King2012-08-221-5/+27
| | | | | These values are now available almost everywhere and are tested. Document them for general use and list possible ID values.
* Cleanly enable a language in multiple subdirectoriesBrad King2012-08-221-11/+13
| | | | | | | 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.
* VS10: Define CMAKE_VS_PLATFORM_TOOLSET variableBrad King2012-08-223-0/+22
| | | | | When the VS 10 generator selects a non-default PlatformToolset to specify for MSBuild, report the selected name in this variable.
* VS: Cleanup AddPlatformDefinitions() of Visual Studio generatorsPatrick Gansterer2012-08-2221-78/+43
| | | | | Move adding of definitions into cmGlobalVisualStudioGenerator to share code and avoid duplicate architecture string literals.
* CMake Nightly Date StampKitware Robot2012-08-151-1/+1
|
* Merge branch 'master' into cleanup-styleBrad King2012-08-141-1/+1
|\ | | | | | | | | Conflicts: Source/CMakeVersion.cmake
| * CMake Nightly Date StampKitware Robot2012-08-141-1/+1
| |
* | CMakeVersion.bash: Update sed expression for lower-case 'set'Brad King2012-08-141-1/+1
| | | | | | | | | | | | | | Since commit 77543bde (Convert CMake-language commands to lower case, 2012-08-13) the CMakeVersion.cmake file contains lower-case 'set' commands. Teach CMakeVersion.bash to replace the lower-case name instead of the old upper-case 'SET'.
* | Remove CMake-language block-end command argumentsKitware Robot2012-08-134-37/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Convert CMake-language commands to lower caseKitware Robot2012-08-136-207/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-13323-2148/+2148
|/ | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Merge topic 'xcode-select'David Cole2012-08-131-2/+17
|\ | | | | | | | | e88bae7 Xcode: Run xcode-select to find Xcode version file (#13463)
| * Xcode: Run xcode-select to find Xcode version file (#13463)Brad King2012-08-101-2/+17
| | | | | | | | | | | | | | Multiple versions of Xcode may be installed in different locations. Run "xcode-select --print-path" to detect the active Xcode location and parse its Contents/version.plist file. Note that the Xcode.app directory name may vary in developer versions.
| * CMake Nightly Date StampKitware Robot2012-08-091-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-08-081-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-08-071-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-08-061-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-08-051-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-08-041-1/+1
| |
* | Merge topic 'doc_fixes'David Cole2012-08-131-3/+3
|\ \ | | | | | | | | | | | | 76d6c59 Clean up documentation formatting so that it is rendered properly in HTML.
| * | Clean up documentation formatting so that it is rendered properly in HTML.Zack Galbreath2012-08-031-3/+3
| |/
* | Merge topic 'xcode-object-dir'David Cole2012-08-131-1/+1
|\ \ | | | | | | | | | | | | b237dbd Xcode: Fix object library references in multi-project trees (#13452)
| * | Xcode: Fix object library references in multi-project trees (#13452)Brad King2012-08-031-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In cmGlobalXCodeGenerator::Generate we generate a .xcodeproj for each directory in the tree containing a project() command. First we iteratively use SetGenerationRoot to add "ALL_BUILD" and other targets to each project. This leaves "CurrentProject" set to the last project when we invoke cmGlobalGenerator::Generate, which is not the same as the top-level project if any subdirectories invoke the project() command. When cmGlobalGenerator::Generate reaches CreateGeneratorTargets it constructs cmGeneratorTarget and calls ComputeTargetObjects exactly once per target. In this context the value of CurrentProject is undefined so we cannot pass it to GetObjectsNormalDirectory. Use "$(PROJECT_NAME)" instead so it will adapt automatically to each project. Also teach Tests/ObjectLibrary to cover this case.
| * CMake Nightly Date StampKitware Robot2012-08-031-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-08-021-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-08-011-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-07-311-1/+1
| |
* | Merge topic 'directory-typo'David Cole2012-08-131-2/+2
|\ \ | | | | | | | | | | | | 6c8722f Fix typo direcotry -> directory (and similar) [#13444]
| * | Fix typo direcotry -> directory (and similar) [#13444]Rolf Eike Beer2012-07-301-2/+2
| |/
| * CMake Nightly Date StampKitware Robot2012-07-301-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-07-291-1/+1
| |
* | Merge topic 'EclipseFixBadLinkedResources'David Cole2012-08-131-0/+14
|\ \ | | | | | | | | | | | | 4ea5dc5 Eclipse: fix #13358: don't create bad linked resources
| * | Eclipse: fix #13358: don't create bad linked resourcesAlex Neundorf2012-07-281-0/+14
| |/ | | | | | | | | | | | | Don't create linked resources which point to CMAKE_BINARY_DIR itself or one of its parent dirs. Eclipse complained about that. Alex
| * CMake Nightly Date StampKitware Robot2012-07-281-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-07-271-1/+1
| |
| * CMake Nightly Date StampKitware Robot2012-07-261-1/+1
| |
* | Merge topic 'mixed-lib-to-lib64'David Cole2012-08-132-74/+45
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | af80da3 remove lib64 Unix paths if the respective lib path is also given 733726e find_library: Fix mixed lib->lib64 (non-)conversion cases (#13419) 54add62 find_library: Simplify lib->lib<arch> expansion 6ca2f82 find_library: Refactor lib->lib64 conversion 1fe4b82 find_library: Add test covering lib->lib64 cases
| * | find_library: Fix mixed lib->lib64 (non-)conversion cases (#13419)Brad King2012-07-202-16/+39
| | | | | | | | | | | | | | | | | | | | | | | | When a search path contains multiple "lib/" instances we previously converted all or none. This fails for cases where only some of the multiple instances must be converted. Teach AddArchitecturePaths to generate all combinations that exist. Uncomment these cases in the CMakeOnly.find_library test now that they work.
| * | find_library: Simplify lib->lib<arch> expansionBrad King2012-07-201-17/+9
| | | | | | | | | | | | | | | | | | Simplify cmFindLibraryCommand::AddArchitecturePaths logic to avoid recording a separate 'found' status and populating an entire vector<string> just to throw it away.
| * | find_library: Refactor lib->lib64 conversionBrad King2012-07-202-49/+5
| | | | | | | | | | | | | | | | | | | | | Previously methods AddArchitecturePaths and AddLib64Paths were almost identical. Replace the latter with a call to the former. Fix the AddArchitecturePaths implementation to add trailing slashes to all tested paths.
* | | Merge topic 'use_normal_ouput_with_chdir'David Cole2012-08-131-1/+1
|\ \ \ | | | | | | | | | | | | | | | | 4ddd3b9 Use OUTPUT_NORMAL instead of OUTPUT_MERGE for cmake -E chdir.
| * | | Use OUTPUT_NORMAL instead of OUTPUT_MERGE for cmake -E chdir.Bill Hoffman2012-07-201-1/+1
| |/ / | | | | | | | | | Using OUTPUT_MERGE can cause the output to be jumbled in some cases.
* | | CMake Nightly Date StampKitware Robot2012-08-131-1/+1
| | |
* | | CMake Nightly Date StampKitware Robot2012-08-121-1/+1
| | |
* | | CMake Nightly Date StampKitware Robot2012-08-111-1/+1
| | |
* | | CMake Nightly Date StampKitware Robot2012-08-101-1/+1
| | |
* | | Begin post-2.8.9 developmentDavid Cole2012-08-091-2/+2
| | |
* | | CMake 2.8.9v2.8.9David Cole2012-08-091-1/+1
| | |