summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Major improvement of the generated targets in Eclipse.Alexander Neundorf2009-09-164-14/+102
| | | | | | | | | | | | | | | Before this change all targets were displayed in the top level directory of the project. Now the targets are displayed in the correct directory. The targets "clean" and "all" are now created in every subdirectory. Also now the targets for just compiling one file, preprocessing one file, assembling one file are are created for Eclipse. Additionally all targets get a prefix now in eclipse, so that they are sorted in a way which makes sense (global targets first, then executable and libraries, then object files, then preprocessed, then assembly). Also this prefix gives the user a hint what the target is, i.e. whether it's a library or an executable or something else. Alex
* Create CMake.ConfigureFile test for configure_fileBrad King2009-09-166-0/+28
| | | | | This test checks that configure_file() handles input and output file arguments as documented.
* Teach configure_file to handle directory namesBrad King2009-09-162-0/+21
| | | | | | | This commit teaches configure_file how to handle directories for input and output. It is an error if the input is a directory. If the output is a directory we put the configured copy of the input file in it with the same name. See issue #9537.
* Teach configure_file to handle relative pathsBrad King2009-09-162-12/+27
| | | | | | | The configure_file() command now converts relative output paths to full paths using the current binary directory. Input relative paths were already converted using the current source directory, but this behavior was not previously documented.
* Fix typo in cmConfigureFileCommand ivar nameBrad King2009-09-162-5/+5
| | | | Rename 'OuputFile' to 'OutputFile'.
* Factor out CMake.File test result check for re-useBrad King2009-09-162-35/+40
| | | | | | | The CMake.File test runs several scripts through "cmake -P" and checks the output and result against known good values. This commit factors out the checking code into a separate CMakeCheckTest module. The module may be used by new tests.
* Put compiler defined macros into eclipse project filesAlexander Neundorf2009-09-162-5/+89
| | | | | | | | | Now gcc is queried also for the builtin definitions, and they are then added to the .cproject file. This should make the preprocessor highlighting in eclipse work better (#9272) Patch mostly from Miguel. Alex
* Bug #09476, add more search paths for jni.Bill Hoffman2009-09-161-1/+12
|
* Fix for bug#9553, print a warning if pkg-config is not found.Bill Hoffman2009-09-161-0/+5
|
* Fix XL C++ compiler flags on LinuxBrad King2009-09-162-0/+6
| | | | | | | | In Platform/Linux.cmake we add GNU flags as default for the platform which breaks non-GNU compilers. Later we should refactor these flag files to put compiler-specific flags only in files loaded for each compiler. Until then this commit fixes the XL C++ compiler flags on Linux by erasing the GNU flags. See issue #9469.
* Fix uninitialized errors.Bill Hoffman2009-09-161-0/+7
|
* Generate proper Intel Fortran project versionBrad King2009-09-161-1/+13
| | | | | | | The Intel Visual Fortran compiler plugin for MS Visual Studio may be one of several versions of the Intel compiler. This commit teaches CMake to detect the plugin version and set the version number in .vfproj files. See issue #9169.
* Create VS generator GetRegistryBase methodBrad King2009-09-168-0/+22
| | | | | | | | | This method returns the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\<version> A protected GetIDEVersion method retrieves the version-specific part of the key name.
* Test add_subdirectory inside functionBrad King2009-09-161-0/+35
| | | | | | | This commit teaches the FunctionTest to check variable scope behavior when a subdirectory is added inside a function call. Any PARENT_SCOPE sets in the subdirectory should affect only the function scope which called add_subdirectory and not its parent scope.
* Initialize directory scope with closure of parentBrad King2009-09-161-2/+10
| | | | | | | | | | | | | The commit "Improve dynamic variable scope implementation" optimized function scopes using an efficient parent scope pointer. However, the parent scope used to initialize a new directory might not exist later (like add_subdirectory called inside a function of the parent scope). This caused CMake to crash when following the dangling pointer to the original parent scope. We fix the problem in this commit by always computing the closure of the parent scope at directory initialization time so that no parent scope pointer is needed. See issue #9538.
* KWSys Nightly Date StampKWSys Robot2009-09-161-1/+1
|
* Initial version of FindCUDA script. Still needs documentation formatting.James Bigler2009-09-154-0/+1577
|
* KWSys Nightly Date StampKWSys Robot2009-09-151-1/+1
|
* Fix for bug #8969, pick a better default version for VS, and make it easier ↵Bill Hoffman2009-09-151-27/+24
| | | | to add new versions of VS to look for.
* Fix for bug# 5373, include CMake verison in generated docs.Bill Hoffman2009-09-151-2/+4
|
* fix #9152: find ZLIB quietly if PNG is searched QUIETLYAlexander Neundorf2009-09-141-2/+7
| | | | Alex
* Bug #8356, add support for image types in Xcode files.Bill Hoffman2009-09-141-0/+4
|
* Fix for bug #8807, add support for CMAKE_EXE_LINKER_FLAGS_(config) to Xcode ↵Bill Hoffman2009-09-141-0/+9
| | | | generator.
* Fix for Bug #9190, -U did not work on case insensitive file systems because ↵Bill Hoffman2009-09-143-5/+10
| | | | of call to glob convert to regex that expected to work with files.
* Clarify documentation for if.Bill Hoffman2009-09-141-1/+1
|
* Removed fork-and-continue option from ctest generated batch script entriesZach Mullen2009-09-142-2/+1
|
* Fix open solaris build issue with concept checking that breaks std vector ↵Bill Hoffman2009-09-142-9/+32
| | | | for a class of itself. Bug #9523.
* Change FindPythonLibs to use the standard _DIR instead of _PATH but stay ↵Bill Hoffman2009-09-141-14/+27
| | | | backwards compatible
* KWSys Nightly Date StampKWSys Robot2009-09-141-1/+1
|
* KWSys Nightly Date StampKWSys Robot2009-09-131-1/+1
|
* Avoid shadowing std::vector memberBrad King2009-09-121-3/+3
| | | | | | The cmProcess::Buffer class derives from std::vector. We were using local variable 'data' in the GetLine method but this name shadowed a member of vector with GNU. This renames it to 'text'.
* major improvement of FindRuby.cmakeAlexander Neundorf2009-09-121-38/+188
| | | | | | | | | -now supports specifying minimum required version -now supports ruby 1.8 and 1.9 -uses find_package_handle_standard_args() now -fix #6212 and using a lot of ideas from the file attached there Alex
* use HINTS instead of PATHS and also look for libruby-static.a (which is ↵Alexander Neundorf2009-09-121-3/+3
| | | | | | built by default) Alex
* Don't pass *.S files to the assembler, they must go through gcc, because ↵Alexander Neundorf2009-09-121-1/+3
| | | | | | they must be preprocessed Alex
* KWSys Nightly Date StampKWSys Robot2009-09-121-1/+1
|
* Fix for bug#9442, ctest crash if CTEST_SOURCE_DIRECTORY was not set.Bill Hoffman2009-09-111-1/+1
|
* Test that CTest can handle missing newlinesBrad King2009-09-111-0/+4
| | | | | We create test 'CTest.NoNewline' to print output with no newline. This tests CTest's ability to handle a missing newline.
* Fix new CTest output handling for no newlineBrad King2009-09-111-0/+1
| | | | | | When we clear the buffer for an output pipe after returning the last partial line (without a newline) we need to set the partial line range to empty. Otherwise the buffer object is left in an inconsistent state.
* Add label summary times to ctest default output. Also, remove parallel time ↵Bill Hoffman2009-09-114-20/+43
| | | | output. Add flag to disable label summary.
* Rewrite CTest child output handlingBrad King2009-09-115-203/+132
| | | | | | | | | | | | | | This commit fixes cmCTestRunTest and cmProcess to more efficiently handle child output. We now use the buffer for each child output pipe to hold at most a partial line plus one new block of data at a time. All complete lines are scanned in-place, and then only the partial line at the end of the buffer is moved back to the beginning before appending new data. We also simplify the cmProcess interface by making GetNextOutputLine the only method that needs to be called while the process is running. This simplifies cmCTestRunTest so that CheckOutput can be called until it returns false when the process is done.
* Initialize cmCTestRunTest instances robustlyBrad King2009-09-113-18/+6
| | | | | | All instances of this class need a cmCTestTestHandler, so we now require one to construct it. The instance also provides the cmCTest instance too.
* Remove barely-used cmCacheManager::AddCacheEntryBrad King2009-09-113-18/+3
| | | | | | | The commit "Remove barely-used cmMakefile::AddCacheDefinition" removed all but one use of the cmCacheManager method 'bool' overload. This commit removes the other use and the entire method, thus reducing code duplication.
* Fix option() interpretation of non-boolean valuesBrad King2009-09-111-1/+2
| | | | | | The commit "Remove barely-used cmMakefile::AddCacheDefinition" broke option() calls that pass a non-boolean default value. We restore the old behavior by always coercing the value to 'ON' or 'OFF'.
* Add parentheses around '&&' between '||' for gccBrad King2009-09-1111-42/+47
| | | | | | | 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.
* KWSys Nightly Date StampKWSys Robot2009-09-111-1/+1
|
* Create CMake Policy CMP0015 to fix set(CACHE)Brad King2009-09-107-2/+94
| | | | | | | | The set(CACHE) and option() commands should always expose the cache value. Previously we failed to expose the value when it was already set if a local variable definition hid it. When set to NEW, this policy tells the commands to always remove the local variable definition to expose the cache value. See issue #9008.
* Remove barely-used cmMakefile::AddCacheDefinitionBrad King2009-09-103-23/+2
| | | | | | | | The boolean overload of this method was used only to implement option(). We re-implement option() in terms of the main method and removes the now-unused signature. This removes some duplicate code that had already fallen behind on changes (it was not removing the local definition instead of setting it).
* sync target generation with the CodeBlocks generatorAlexander Neundorf2009-09-102-80/+51
| | | | | | | | | | | Basically the code is now a copy of the one from the CodeBlocks generator, maybe this could move into a common helper function somewhere: -only insert GLOBAL targets from the toplevel directory -don't insert the edit_cache target if it calls ccmake, since this doesn't work in the output tab of Eclipse -add the /fast targets Alex
* As in the Eclipse generator: don't insert the edit_cache target if it is ↵Alexander Neundorf2009-09-101-1/+18
| | | | ccmake, since this doesn't work in the output tab of the IDE
* Added some ctest batch capabilitiesZach Mullen2009-09-102-0/+148
|