summaryrefslogtreecommitdiffstats
path: root/Source/cmTryRunCommand.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Use makefile->IssueMessage() for better error messagesAlex Neundorf2011-09-271-1/+1
| | | | Alex
* Improve behaviour of --find-package mode with try_run/try_compileAlex Neundorf2011-09-151-0/+8
| | | | | | | | Instead of failing with an error message which says things have not been setup correctly, it now says that try_compile/try_run() are not supported in find_package mode (#12426). Alex
* Remove trailing whitespaceAlex Neundorf2011-09-151-13/+13
| | | | Alex
* RunSingleCommand: Replace verbose boolean with enumJohan Björk2011-07-281-1/+1
| | | | | No behaviour change, this prepares for adding a flag to skip the merging of output streams.
* Fix spelling errors reported by Lintian.Kai Wasserbäch2010-07-131-1/+1
| | | | | During a Lintian run on the binary packages of CMake in Debian I was notified of many spelling mistakes.
* 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-2/+3
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* STYLE: copy the executables from TRY_RUN() toAlexander Neundorf2007-09-171-0/+1
| | | | | | ${CMAKE_BINARY_DIR}/CMakeFiles/ instead to ${CMAKE_BINARY_DIR} Alex
* ENH: if no COMPONENT is specified, make this install item part of theAlexander Neundorf2007-08-011-2/+2
| | | | | | | | | | | | | "Unspecified" component -> if no components are used at all, no change in behaviour, if components are used completely, no change in behaviour, since this default will be overridden everywhere, if components where used partly, it is now possible to install only the unspecified items (e.g. everything which wasn't marked as "Development") Alex Alex
* STYLE: some more tuning for the comment textAlexander Neundorf2007-08-011-11/+10
| | | | Alex
* ENH: add tests for check_c_source_runs(), check_cxx_source_runs(),Alexander Neundorf2007-07-311-53/+50
| | | | | | | | check_c_source_compiles() and check_cxx_source_compiles() -TRY_RUN in crosscompiling mode: copy the created executables to CMAKE_BINARY_DIR so the user can run them manually on the target Alex
* ENH: FORCE the values in the cache, otherwise the file is uselessAlexander Neundorf2007-07-301-2/+2
| | | | Alex
* STYLE: fix line lengthsAlexander Neundorf2007-07-261-1/+2
| | | | Alex
* STYLE: put a lot of comments into the generated cmake-cache preloading file ↵Alexander Neundorf2007-07-231-15/+48
| | | | | | to aid the user with using it Alex
* ENH: try to create a file which can be used for presetting the cache valuesAlexander Neundorf2007-07-231-0/+20
| | | | | | of the TRY_RUN() results when crosscompiling Alex
* ENH: improve TRY_RUN() for crosscompiling: instead of just failing, it nowAlexander Neundorf2007-06-011-41/+242
| | | | | | | | | | | | | | | creates two cache variables, one for the RUN_RESULT, one for the RUN_OUTPUT (if required), which can be set or preset by the user. It has now also two new arguments: RUN_OUTPUT_VARIABLE and COMPILE_OUTPUT_VARIABLE (the old OUTPUT_VARIABLE merges both), so if only COMPILE_OUTPUT_VARIABLE is used the run time output of the TRY_RUN is unused and the user doesn't have to care about the output when crosscompiling. This is now used in FindThreads.cmake, CheckC/CXXSourceRuns.cmake and TestBigEndian.cmake, which used the output only for the logfile (compile output is still there). Test/TryCompile/ now also tests the behaviour of OUTPUT_VARIABLE, RUN_OUTPUT_VARIABLE and COMPILE_OUTPUT_VARIABLE. Alex
* BUG: remove debug outputAlexander Neundorf2007-05-251-2/+0
| | | | Alex
* STYLE: remove debug output, fix indentationAlexander Neundorf2007-05-241-4/+0
| | | | | | | the tests run again successfully, but since CheckTypeSize will switch to a TRY_COMPILE soon I will look at it again after this change Alex
* COMP: try to fix the test failures on dash2Alexander Neundorf2007-05-241-0/+6
| | | | Alex
* ENH: add COPY_FILE argument to TRY_COMPILE, so the compiled executable canAlexander Neundorf2007-05-241-1/+0
| | | | | | be used e.g. for getting strings out of it. Alex
* ENH: add two simple tests for TRY_RUN()Alexander Neundorf2007-05-241-42/+42
| | | | | | | | 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-116/+38
| | | | | | there too... many public static functions with lots of arguments... :-/ Alex
* STYLE: fix line lengthsAlexander Neundorf2007-05-181-1/+2
| | | | Alex
* ENH: merge CMake-CrossCompileBasic to HEADAlexander Neundorf2007-05-171-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | -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
* ENH: look at CMAKE_TRY_COMPILE_CONFIGURATION var for TryRun as wellKen Martin2007-05-031-19/+54
|
* ENH: centralized locaiton of CMakeFiles settingKen Martin2006-06-141-1/+3
|
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-6/+6
|
* STYLE: fix line lengthsBill Hoffman2006-03-101-2/+3
|
* ENH: Since list file cache does not make much sense any more (because of ↵Andy Cedilnik2006-02-071-1/+0
| | | | proper list file parsing), and it actually adds unnecessary complications and make ctest scripting not work, take it out
* ENH: put CmakeTmp into CMakeFilesKen Martin2006-01-121-1/+1
|
* ENH: use native Deployment and Development directoriesBill Hoffman2005-08-301-5/+16
|
* BUG: Fixed error message formatting when try run executable command cannot ↵Brad King2005-06-211-13/+15
| | | | be found.
* ENH: cleanup by removing all the olf local generate junk that i not longer ↵Ken Martin2005-03-101-5/+0
| | | | needed
* ENH: fix for 1450Bill Hoffman2005-02-101-8/+17
|
* ENH: major changes to support addition of languages from cmake modules ↵Bill Hoffman2004-09-221-3/+25
| | | | directory.
* ENH: allow debug of tryrunBill Hoffman2004-08-041-1/+4
|
* BUG: fix spaces in path on mingw, and change EXEC_PROGRAM to return false ↵Bill Hoffman2004-06-231-1/+1
| | | | when it does not run, also do not convert the directory to an output path for EXEC_PROGRAM as this is done by the process execution, and doing it twice may cause trouble on some shells.
* ENH: Use the new signatureAndy Cedilnik2003-08-041-1/+3
|
* 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.
* always convert to output pathKen Martin2002-09-241-1/+1
|
* Abstract cleaning of files and add code that deletes files from Debug ↵Andy Cedilnik2002-09-231-15/+1
| | | | subdirectory
* Add GetLocal on cmMakefile and on local builds do not perform testsAndy Cedilnik2002-09-201-1/+7
|
* compiler warningsKen Martin2002-09-201-1/+1
|
* Fix tryrun to work on LinuxAndy Cedilnik2002-09-191-9/+13
|
* Fix compile problemAndy Cedilnik2002-09-191-1/+1
|
* minor cleanupKen Martin2002-09-191-1/+1
|
* new commandKen Martin2002-09-191-0/+124