summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.h
Commit message (Collapse)AuthorAgeFilesLines
* Maint: misc. typosluz.paz2018-08-241-1/+1
| | | | Found via `codespell`.
* Use C++11 override instead of CM_OVERRIDEBrad King2017-09-151-2/+2
| | | | | | | | We now require C++11 support including `override`. Drop use of the old compatibility macro. Convert references as follows: git grep -l CM_OVERRIDE -- '*.h' '*.hxx' '*.cxx' | xargs sed -i 's/CM_OVERRIDE/override/g'
* IWYU: Mark cmConfigure.h with pragma: keepDaniel Pfeifer2017-08-261-1/+1
| | | | Also remove `#include "cmConfigure.h"` from most source files.
* cmCommand: remove unused methods from interface and all implementationsDaniel Pfeifer2017-05-111-5/+0
|
* Use quotes for non-system includesDaniel Pfeifer2017-04-111-1/+1
| | | | | | | | | | | | | Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
* cmConfigure: Ensure separate include block in headersDaniel Pfeifer2017-04-111-0/+1
| | | | | | | | | | | Make sure that `#include <cmConfigure.h>` is followed by an empty line in header files. This is necessary to make sure that changing <> to "" does not affect the include ordering of clang-format. Automate with: git grep -l '#include <cmConfigure.h>' | grep -v '.cxx$' \ | xargs sed -i '/#include <cmConfigure.h>/ { N; N; s/\n\{1,2\}/\n\n/ }'
* Include necessary headers in commandsDaniel Pfeifer2016-10-261-0/+7
|
* Make cmCommand not inherit from cmObjectDaniel Pfeifer2016-10-221-2/+0
|
* Simplify CMake per-source license noticesBrad King2016-09-271-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* mark functions with CM_OVERRIDEDaniel Pfeifer2016-06-271-4/+4
|
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-8/+3
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* stringapi: Command namesBen Boeckel2014-03-081-1/+1
|
* Drop builtin command documentationBrad King2013-10-161-75/+0
| | | | | Drop all GetTerseDocumentation and GetFullDocumentation methods from commands. The command documentation is now in Help/command/*.rst files.
* try_compile: Add COPY_FILE_ERROR option to capture failureBrad King2013-07-151-2/+2
| | | | | | | | | | | When the COPY_FILE operation fails optionally capture the error message with a COPY_FILE_ERROR option instead of reporting the error immediately. This gives callers a chance to do something else or report the error. Teach the RunCMake.try_compile test to cover bad argument combinations involving COPY_FILE_ERROR. Teach the TryCompile test to cover the case of a COPY_FILE error message captured by COPY_FILE_ERROR.
* try_compile: Add signature to allow multiple SOURCESBrad King2013-06-061-5/+5
| | | | | | | | | | | | | | | | | Extend the signature try_compile(RESULT_VAR <bindir> <srcfile> ...) to allow multiple sources as try_compile(RESULT_VAR <bindir> SOURCES <srcfile>... ...) Process the sources to generate a CMakeLists.txt that enables all needed languages. Teach the TryCompile test to try cases with two sources of the same language and of mixed languages. Teach RunCMake.try_compile to cover error cases for the signature.
* Handle targets in the LINK_LIBRARIES of try_compile.Stephen Kelly2013-02-221-1/+7
| | | | | | | | | | Imported targets are re-exported so that they can be used by the try_compile generated code with target_link_libraries. This makes the use of the cmake_expand_imported_targets macro obsolete. The macro is not able to expand the generator expressions which may appear in the IMPORTED_LINK_INTERFACE_LIBRARIES content. Instead it just sees them as 'not a target'.
* Add 'const' qualifier to some cmCommand membersYury G. Kudryashov2012-02-291-3/+3
| | | | | Use const_cast for the special case in cmFindBase where GetFullDocumentation calls GenerateDocumentation.
* Minor fix to try_compile() docs (#12333)Alex Neundorf2011-07-121-4/+5
| | | | Alex
* CMake: Clarify the --debug-trycompile help textDavid Cole2011-04-121-5/+11
|
* Merge topic 'try_compile-Makefile-config'Brad King2011-01-191-1/+3
|\ | | | | | | | | | | 052c2ae Document CMAKE_TRY_COMPILE_CONFIGURATION variable 56efc60 Honor CMAKE_TRY_COMPILE_CONFIGURATION in Makefile generators (#10809)
| * Document CMAKE_TRY_COMPILE_CONFIGURATION variableBrad King2011-01-171-1/+3
| | | | | | | | | | Also reference it from try_compile and try_run since it affects those commands.
* | Document try_compile behavior more clearly (#11688)Brad King2011-01-121-18/+23
|/ | | | | | | Explicitly state up front that the source-file form of the command links an executable and expects a 'main' to be defined. While at it, update the command signature documentation to use a syntax more consistent with other commands. Also tweak some wording.
* 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: 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
* STYLE: Spelling fixes on documentationAmitha Perera2008-01-101-1/+1
|
* ENH: make commands lower case by defaultKen Martin2007-10-101-9/+9
|
* STYLE: fix line lengthsAlexander Neundorf2007-07-201-3/+3
| | | | Alex
* ENH: add COPY_FILE argument to TRY_COMPILE, so the compiled executable canAlexander Neundorf2007-05-241-6/+8
| | | | | | be used e.g. for getting strings out of it. Alex
* ENH: add two simple tests for TRY_RUN()Alexander Neundorf2007-05-241-29/+3
| | | | | | | | STYLE: create a new base class cmCoreTryCompile, from which cmTryCompileCommand and cmTryRunCommand are derived, so there are no public static functions with lots of arguments anymore Alex
* ENH: move output file search to cmTryCompileCommand.cxx, so it can be usedAlexander Neundorf2007-05-241-3/+14
| | | | | | there too... many public static functions with lots of arguments... :-/ Alex
* STYLE: fix documentation for commandBill Hoffman2007-05-181-11/+22
|
* STYLE: fix line lengthKen Martin2006-05-121-6/+7
|
* ENH: fix line length style stuffBill Hoffman2006-03-101-1/+2
|
* ENH: put CmakeTmp into CMakeFilesKen Martin2006-01-121-1/+1
|
* STYLE: fix docsKen Martin2005-11-171-9/+9
|
* ENH: add more docsBill Hoffman2005-07-191-2/+11
|
* fix to the signature and argument parsingKen Martin2003-12-111-1/+1
|
* BUG#163: Added documentation of OUTPUT_VARIABLE argument.Brad King2003-10-301-3/+6
|
* removed redundent includesKen Martin2003-08-101-1/+0
|
* ENH: Cleaned up documentation and formatted it for use by cmDocumentation.Brad King2003-02-141-7/+9
|
* Make try compile add a depend to re-run cmake if its source chagnesBill Hoffman2002-12-121-1/+1
|
* clean up entire temp directoryBill Hoffman2002-11-211-1/+1
|
* 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.
* Abstract cleaning of files and add code that deletes files from Debug ↵Andy Cedilnik2002-09-231-2/+8
| | | | subdirectory
* updated to try compileKen Martin2002-09-191-3/+15
|
* now Try compile can include CMAKE_FLAGSKen Martin2002-09-181-2/+2
|
* slight change in signatureKen Martin2002-09-171-2/+2
|
* another signature for Try_CompileKen Martin2002-09-121-1/+3
|
* updated signatureKen Martin2002-09-101-6/+4
|
* an early checking not completeKen Martin2002-08-281-0/+78