summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* speedup C dependency scanning even moreAlexander Neundorf2009-10-061-23/+7
| | | | | | | | | | | Scanning the dependencies for kdelibs/khtml/ (when all files are scanned) is now down to 4.6 s from 6.3 s before this change (without the headerLocationCache it takes about 14 s here). It doesn't really make sense to include the complete include path as part of the key for the map, since the include path will be the same for all files in a project, so it doesn't add anything. Alex
* Avoid non-root copies of root-only targetsBrad King2009-10-065-48/+34
| | | | | | | | | | | | | | In cmGlobalGenerator::GetTargetSets we collect targets from all local generators in a tree or subtree corresponding to a project() command. Some targets, such as ALL_BUILD, are duplicated in each subdirectory with a project() command. For such targets we should keep only the copy for the top-most (root) local generator. Previously this filtering was done in each VS IDE generator, but it is easier to do it in one place when the targets are first encountered. This also fixes bad ALL_BUILD dependencies generated for VS 7.0 because the cmGlobalVisualStudio7Generator::WriteTargetDepends method was not filtering out duplicates. Now we avoid duplicates from the start.
* Increase coverage. Add test of class cmakewizard. (cmake -i 'mode')David Cole2009-10-062-0/+57
|
* Added better OS information for Mac OS XZach Mullen2009-10-061-0/+28
|
* Use work-around from bug 4772 for C++ and FortranBrad King2009-10-063-13/+27
| | | | | | | | | | | | | | The commit "fix for bug 4772" added a work-around to CMakeCInformation for platform config files that put compiler information in the system file (like SunOS flags for GCC). This commit adds the same work-around for CXX and Fortran. It is necessary to support enabling these languages separately from C in other subdirectories. The commit "Avoid (Unix|Windows)Paths.cmake multiple include" added include blockers that prevent the files from multiple inclusion, so it is safe to include the system information files from every language. See issue #4772 and issue #9656.
* Target copy ctor should initialize internal stateBrad King2009-10-061-0/+1
| | | | | | The commit "Target copy ctor should copy internal state" created a new cmTargetInternals constructor but failed to initialize a POD member that the original constructor initializes. This commit fixes it.
* Use explicit conversion to avoid warnings in cmELFBrad King2009-10-061-2/+2
|
* KWSys Nightly Date StampKWSys Robot2009-10-061-1/+1
|
* Updated copyright notice to conform to NVIDIA guidelines.James Bigler2009-10-054-8/+4
|
* Fortran test: Match config for external projectBrad King2009-10-051-0/+3
| | | | | | | In the Fortran test we use a custom command to build another Fortran project internally. The project provides a Fortran module and library to which to link. This commit teaches the test to build the extra project using the same build configuration as the main project.
* Add tests for uncovered bits of the math and cmake_minimum_required cmake ↵David Cole2009-10-055-0/+87
| | | | functions.
* FortranCInterface: Mangling for Intel on WindowsBrad King2009-10-051-0/+4
| | | | | The Intel Fortran compiler for Windows uses upper-case symbol names with no trailing underscore.
* Target copy ctor should copy internal stateBrad King2009-10-051-3/+9
| | | | | | | Ideally we should never copy cmTarget instances, but it is a pain to remove current uses of it. The pimplized portion of cmTarget has mostly members that cache results, but some are part of the object state. These should be copied in the copy ctor instead of re-initialized.
* don't allow consecutive generates without a configure.Clinton Stimpson2009-10-051-1/+1
|
* Fix Preprocess test for Intel on WindowsBrad King2009-10-051-3/+9
| | | | | | | | We need to leave out the '%' character from tests with the Intel compiler. Since '%' needs to be written '%%' in NMake when not using a response file but just '%' when using a response file, we just skip the character for now. It works with MSVC in NMake only because that compiler expects '%%' inside response files, which do get used.
* Fix ModuleDefinition test for Intel on WindowsBrad King2009-10-053-5/+6
| | | | | | | CMake defines MSVC only for a VS compiler, but the Intel compiler adds the preprocessor definition _MSC_VER. Instead of relying on separate tests to decide whether to use example_dll_2, we do one test in CMake and then add our own preprocessor definition.
* Fix PrecompiledHeader test for Intel on WindowsBrad King2009-10-051-3/+3
| | | | | This commit updates the test's sanity check to allow Intel too. Previously it refused to run on non-MSVC compilers.
* Teach intel compiler on windows to place .lib files and .pdb files.Bill Hoffman2009-10-051-2/+2
|
* CPack: Fix bash-isms in launch scriptBrad King2009-10-051-4/+4
| | | | Patch from Raphael Geissert and Modestas Vainius. See issue #9659.
* Teach intel compiler on windows to place .lib files and .pdb files.Bill Hoffman2009-10-051-1/+7
|
* BUG: #0009648 Change "The following tests FAILED" message to print on stdout ↵Zach Mullen2009-10-051-1/+1
| | | | rather than stderr
* Avoid (Unix|Windows)Paths.cmake multiple includeBrad King2009-10-052-0/+20
| | | | | | | | | | Block multiple inclusion because "Modules/CMakeCInformation.cmake" includes "Platform/${CMAKE_SYSTEM_NAME}" even though the generic module "CMakeSystemSpecificInformation.cmake" already included it. The extra inclusion is a work-around to address issue #4772 without intrusive platform file changes. Once those changes are made the work-around and these include blockers can be removed. See issue #9656.
* Add copyright notice to (Unix|Windows)Paths.cmakeBrad King2009-10-052-0/+28
| | | | | This commit adds our copyright notice to these non-trivial platform modules.
* When getting include dirs for moc, also watch for framework includes and use ↵Clinton Stimpson2009-10-051-1/+6
| | | | -F instead of -I.
* Find locally installed software firstBrad King2009-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | This commit re-orders the search path prefix list from / /usr /usr/local to /usr/local / /usr so that locally-installed software is preferred. This makes the search consistent with the Filesystem Hierarchy Standard: http://www.pathname.com/fhs/ See issue #9657.
* Add '#!/bin/sh' to cygwin-package.shBrad King2009-10-051-0/+2
| | | | | | | This commit adds '#!/bin/sh' to the top of the cygwin-package.sh.in script. All executable interpreted scripts should have this directive. Patch from Modestas Vainius. See issue #9659.
* Fix permsissions of installed SquishRunTestCase.shBrad King2009-10-051-3/+3
| | | | | | | This commit fixes permissions of Modules/SquishRunTestCase.sh after installation. Previously install() removed executable permissions. Patch from Modestas Vainius. See issue #9659.
* Fix module docs to be manpage (groff) friendlyBrad King2009-10-053-30/+30
| | | | | | | | | | | | | | | | | | | | | | Most problems are fixed (or rather worked-around) by making long '=====' separators pre-formatted (i.e. prefixed with two spaces). In order to preserve visual view, the code examples themselves are prefixed with 3 spaces. This commit fixes the following man warnings: $ cmake --help-man - | LANG=C MANWIDTH=80 man --warnings -l - > /dev/null <standard input>:6024: warning [p 105, 1.7i]: can't break line <standard input>:6027: warning [p 105, 2.7i]: cannot adjust line <standard input>:6027: warning [p 105, 2.8i]: can't break line <standard input>:7142: warning [p 117, 7.8i]: can't break line <standard input>:7171: warning [p 117, 11.8i]: can't break line <standard input>:8878: warning [p 136, 9.0i]: can't break line <standard input>:8887: warning [p 136, 11.5i]: cannot adjust line <standard input>:8887: warning [p 136, 11.7i]: can't break line <standard input>:8904: warning [p 136, 14.2i]: can't break line Patch from Modestas Vainius. See issue #9659.
* Support GNU/kFreeBSDBrad King2009-10-052-11/+7
| | | | | | | | | | | | | GNU/kFreeBSD = FreeBSD kernel + userspace with glibc. Linux.cmake doesn't contain anything too OS specific, so we can forward to it. Here are outputs of /bin/uname on author's machine: uname -p ==> i386 uname -o ==> GNU/kFreeBSD uname -s ==> GNU/kFreeBSD uname -r ==> 5.4-1-686 Patch from Modestas Vainius. See issue #9659.
* Remove old Encoding field from CMake.desktopBrad King2009-10-051-1/+0
| | | | | | | | | | | The Encoding key is now deprecated by the FreeDesktop standard and all strings are required to be encoded in UTF-8. This desktop entry explicitly specified an Encoding of UTF-8, which is harmless but no longer necessary. See http://standards.freedesktop.org/desktop-entry-spec/1.0/apc.html for details. Patch from Modestas Vainius. See issue #9659.
* FindQt3: Prefer (moc|uic)-qt3 names over (moc|uic)Brad King2009-10-051-2/+3
| | | | | | | On Debian moc and uic from Qt3 have '-qt3' suffixes. The latter names might come from Qt4, so prefer the version-specific names. Patch from Modestas Vainius. See issue #9659.
* Match width of ctest "Start xx: " line to line up with the end test lineZach Mullen2009-10-053-4/+6
|
* Remove old license from FindPkgConfig.cmake moduleBrad King2009-10-051-24/+1
| | | | | | | This module was contributed under a BSD-like license. We added CMake's OSI-approved BSD License on top of it. With the author's permission, this commit removes the old license text and puts the author's copyright notice in the block referring to the new license.
* Test target link information invalidationBrad King2009-10-051-0/+5
| | | | | | | | We test this by adding export(TARGETS) to the LinkLanguage test to export the executable before the library is linked to it. Since export(TARGETS) computes the link interface of the target (so that it can export it), this ensures that the information is recomputed after the link library is added.
* Invalidate target link info when necessaryBrad King2009-10-052-0/+21
| | | | | | | | In cmTarget we compute the link implementation, link interface, and link closure structures on-demand and cache the results. This commit teaches cmTarget to invalidate results after a LINK_INTERFACE_* property changes or a new link library is added. We also clear the results at the end of the Configure step to ensure the Generate step uses up-to-date results.
* Combine duplicate code in target property methodsBrad King2009-10-052-9/+9
| | | | | | | In cmTarget::SetProperty and cmTarget::AppendProperty we check whether changing the property invalidates cached information. The check was duplicated in the two methods, so this commit moves the check into a helper method called from both.
* Create explicit cmTarget::FinishConfigure stepBrad King2009-10-053-2/+12
| | | | | | | This method is called during ConfigureFinalPass on every target. It gives each target a chance to do some final processing after it is known that no more commands will affect it. Currently we just call the old AnalyzeLibDependencies that used to be called directly.
* Remove unused cmTarget::AddLinkLibrary methodBrad King2009-10-052-15/+0
|
* KWSys Nightly Date StampKWSys Robot2009-10-051-1/+1
|
* Use new style header generation and get rid of OBJECT_DEPENDS in tutorialBill Hoffman2009-10-051-14/+5
|
* Fix issue #8649 - move the location of CPACK_NSIS_EXTRA_INSTALL_COMMANDS so ↵David Cole2009-10-041-2/+2
| | | | that it is not excluded from execution when 'Do not create shortcuts' is checked.
* fix two more warnings from icpcAlexander Neundorf2009-10-041-3/+0
| | | | | | | asfGlob and abfGlob were there since rev 1.3 of this file (Oct 17th 2004) and unused since then, so remove them Alex
* some syncing with the FindQt4.cmake from KDEAlexander Neundorf2009-10-041-13/+13
| | | | | | | | | -remove the parentheses in the if() conditions, they don't change the result, and without them these lines are identical to the ones in FindQt4.cmake from KDE -mention which qmake was used for finding Qt Alex
* Try to avoid cronic random failures on some Macs.Bill Hoffman2009-10-041-2/+13
|
* Try to avoid cronic random failures on some Macs.Bill Hoffman2009-10-041-2/+15
|
* KWSys Nightly Date StampKWSys Robot2009-10-041-1/+1
|
* -add the additional features for the dbus macros from KDE's FindQt4.cmakeAlexander Neundorf2009-10-031-7/+13
| | | | Alex
* Add a few more cases to the new StringTest for even better coverage. ↵David Cole2009-10-033-117/+184
| | | | Re-factor the scripts to make it easier to add new cases to this test. Re-factoring also enables the test driver in ExecuteScriptTests to be re-used when adding new tests in the future.
* remove unused variables, reported by icpcAlexander Neundorf2009-10-032-7/+0
| | | | Alex
* KWSys Nightly Date StampKWSys Robot2009-10-031-1/+1
|