summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakeMinimumRequired.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Remove c_str calls when using stream APIs.Stephen Kelly2014-03-111-2/+2
| | | | | Use an ad-hoc clang tool for matching the calls which should be ported.
* Remove some c_str() calls.Stephen Kelly2014-03-111-2/+2
| | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
* Drop compatibility with CMake < 2.4Brad King2013-10-231-0/+3
| | | | | | | | | | | | Drop all behavior activated by setting CMAKE_BACKWARDS_COMPATIBILITY to a value lower than 2.4, and generate an error when projects or the user attempt to do so. In the error suggest using a CMake 2.8.x release. Teach cmake_minimum_required to warn about projects that do not require at least CMake 2.4. They are not supported by CMake >= 3.0. Replace the documentation of CMAKE_BACKWARDS_COMPATIBILITY with a reference to policy CMP0001.
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-1/+1
| | | | | | | | | | | | | | | | | 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/ \+$//'
* Teach cmake_minimum_required about tweak versionBrad King2010-04-231-6/+13
| | | | | | | | The command now accepts four version components in the format major[.minor[.patch[.tweak]]] This corresponds to the new versioning scheme introduced recently.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* Add parentheses around '&&' between '||' for gccBrad King2009-09-111-7/+7
| | | | | | | The GNU compiler warns about possible operator precedence mistakes and asks for explicit parentheses (-Wparentheses). We add the parentheses to silence the warning. This also fixes one real logic error in the find_package() implementation by correcting expression evaluation order.
* ENH: Ignore unknown cmake_minimum_required argsBrad King2009-01-031-5/+21
| | | | | | | When cmake_minimum_required is called with an unknown argument it should not complain about it if the version specified is in the future. This allows the proper error to be shown about the current CMake being too old.
* ENH: Cleanup policy version interface presented to user.Brad King2008-03-241-6/+5
| | | | | | | - In cmake_minimum_required do not set policy version if current CMake is too old - In cmPolicies::ApplyPolicyVersion report error if version is too new or cannot be parsed
* ENH: clean up some policy stuff and interactions with ↵Ken Martin2008-03-071-0/+9
| | | | CMAKE_BACKWARDS_COMPATIBILITY and CMAKE_MINIMUM_REQUIRED
* BUG: change the handling of CMAKE_MINIMUM_REQUIRED and ↵Ken Martin2008-03-061-3/+0
| | | | BACKWARDS_COMPATIBILITY and extend the documentaiton quite a bit
* ENH: Make CMAKE_MINIMUM_REQUIRED command FATAL_ERROR option implicit (always ↵Brad King2008-03-041-15/+2
| | | | on). Accept but ignore the existing option.
* ENH: more policy changesKen Martin2008-03-041-0/+3
|
* ENH: add return and break support to cmake, also change basic command ↵Ken Martin2008-01-231-1/+2
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* ENH: unify version stuff, get rid of it out of cmake and cmMakefile and only ↵Bill Hoffman2006-11-291-3/+3
| | | | use cmVersion
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-5/+6
|
* STYLE: Fix some style issuesAndy Cedilnik2006-03-101-5/+8
|
* ENH: Added FATAL_ERROR option and fixed check to not have floating point ↵Brad King2006-02-141-23/+90
| | | | roundoff problems.
* ENH: Enabling ability for CMAKE_MINIMUM_REQUIRED version to include patch ↵Brad King2005-06-171-1/+11
| | | | level. Submitted by Alexander Neundorf.
* removed redundent includesKen Martin2003-08-101-1/+0
|
* ENH: Added reference to Copyright.txt. Removed old reference to ITK ↵Brad King2002-10-231-3/+3
| | | | copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
* ENH: Renamed cmStringStream to cmOStringStream and added cmIStringStream. ↵Brad King2002-10-101-1/+1
| | | | Removed cmInputStringStream.
* ENH: Added cmStringStream class to wrap std::stringstream or std::strstream ↵Brad King2002-06-191-4/+3
| | | | depending on the platform. The interface is that of std::stringstream, so no "ends" or "rdbuf()->freeze(0)" lines are needed.
* WAR: remove warnings for .NET compilerBill Hoffman2002-04-251-1/+1
|
* BUG: add missing includeBill Hoffman2002-04-181-0/+1
|
* ENH: backwards compatible for VTK 4.0, add cmake version requiresBill Hoffman2002-04-171-0/+45