summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeCommand.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Replace foo.size() pattern with !foo.empty().Stephen Kelly2015-01-181-2/+2
|
* Replace 'foo.size() > 0' pattern with !foo.empty().Stephen Kelly2015-01-181-1/+1
|
* Port all cmOStringStream to std::ostringstream.Stephen Kelly2015-01-111-1/+1
| | | | All compilers hosting CMake support the std class.
* strings: Remove redundant calls to std::string::c_str()Nils Gladitz2014-10-151-1/+1
| | | | | Replacements were detected and performed by the clang tool remove-cstr-calls on a linux build.
* Merge topic 'fix_policy_diagnostics'Brad King2014-04-011-3/+3
|\ | | | | | | | | 77b581c2 Policies: omit warnings about unset policies when they are actually set to NEW
| * Policies: omit warnings about unset policies when they are actually set to NEWNils Gladitz2014-03-311-3/+3
| |
* | Remove some c_str() calls.Stephen Kelly2014-03-111-4/+4
|/ | | | | | 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.
* include(): Use lower case and () to refer to the include() command.Stephen Kelly2013-10-181-1/+1
|
* export(): Process the export() command at generate time.Stephen Kelly2013-10-111-0/+1
| | | | | | | | | | | | Make the API for adding targets string based so that it can easily use cmGeneratorTarget. Teach the cmIncludeCommand to generate the exported file at configure-time instead if it is to be include()d. The RunCMake.ExportWithoutLanguage test now needs a dummy header.h file as expected error from export() is now reported after the missing file error.
* CMP0024: Store the fact of included export in global generator.Stephen Kelly2013-10-101-1/+3
| | | | | Storing it in the makefile means that the policy does not trigger when include and export are in differing directories.
* export: Add policy CMP0024 to disallow include() of export filesStephen Kelly2013-10-071-0/+39
| | | | | | | | | | | | | | | | | Currently, export() is executed at configure-time. One problem with this is that certain exported properties like the link interface may not be complete at the point the export() is encountered leading to an incorrect or incomplete exported representation. Additionally, the generated IMPORTED_LOCATION property may even be incorrect if commands following the export() have an effect on it. Another problem is that it requires the C++ implementation of cmake to be capable of computing the exported information at configure time. This is a limitation on the cleanup and maintenance of the code. At some point in the future, this limitation will be dropped and more implementation will be moved from cmTarget to cmGeneratorTarget.
* Fix spelling and typos (non-binary)Andreas Mohr2013-05-071-1/+1
|
* include: Ignore empty string as file name (#13388)Brad King2012-07-101-0/+7
| | | | | | | | | Previously CMake silently accepted the empty string and added a bogus dependency on the current directory. Instead warn about the empty file name and ignore it. We cannot make this an error because there may be existing projects that accidentally depend on the old behavior. Add a RunCMake.include test to cover this case.
* Remove trailing whitespaceAlex Neundorf2011-01-041-8/+8
|
* 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.
* ENH: Isolate policy changes in included scriptsBrad King2009-01-221-1/+7
| | | | | | | | Isolation of policy changes inside scripts is important for protecting the including context. This teaches include() and find_package() to imply a cmake_policy(PUSH) and cmake_policy(POP) around the scripts they load, with a NO_POLICY_SCOPE option to disable the behavior. This also creates CMake Policy CMP0011 to provide compatibility. See issue #8192.
* ENH: Improve formatting of include command error message.Brad King2008-03-081-1/+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: merge CMake-CrossCompileBasic to HEADAlexander Neundorf2007-05-171-8/+51
| | | | | | | | | | | | | | | | | | | | | | | | -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
* STYLE: fix line lengthKen Martin2006-05-111-2/+3
|
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-2/+2
|
* BUG: fatal error in include file should not cause report of missing include fileKen Martin2005-06-081-1/+1
|
* ENH: Allow user to overwrite Platforms filesKen Martin2004-08-091-1/+1
|
* ERR: Remove debugAndy Cedilnik2004-03-281-1/+0
|
* ENH: Add support for importing modules without specifying pathAndy Cedilnik2004-03-281-2/+17
|
* 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.
* BUG: Must return false after an error of incorrect arguments.Brad King2002-10-021-0/+1
|
* Reformatted the error printed by cmMakefile.Berk Geveci2002-05-011-1/+1
|
* ENH: speed improvementsBill Hoffman2002-04-111-8/+10
|
* ENH: expand variables in arguments before the commands get themBill Hoffman2002-03-051-4/+2
|
* ENH:Updated copyrightWill Schroeder2002-01-211-4/+5
|
* ENH: change InitialPass to take a const reference to the argument string, to ↵Bill Hoffman2001-09-201-3/+3
| | | | avoid changes to the file cache
* BUG: remove iostream.h includesBill Hoffman2001-07-101-1/+0
|
* BUG: Added missing newline in error message.Brad King2001-06-221-1/+1
|
* ENH: add optional include and only allow one file per INCLUDEBill Hoffman2001-06-211-7/+15
|
* ENH: rename Invoke to InitialPassBill Hoffman2001-06-061-1/+1
|
* New command: INCLUDE(somefile.txt)Anonymous2001-04-301-0/+38