summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
Commit message (Collapse)AuthorAgeFilesLines
* COMP: Fix bootstrap build after previous change to signature of AddRuleHash.Brad King2008-06-031-2/+2
|
* BUG: Include less content as input to "rule hash" computation.Brad King2008-06-031-18/+3
| | | | | | | - The rule hash should use only commands specified by the user. - No make output (echo and progress) rules should be included. - No outputs or dependencies need be included. The native build tool will take care of them.
* ENH: Introduce "rule hashes" to help rebuild files when rules change.Brad King2008-06-021-0/+149
| | | | | | | | | | | | | | - In CMake 2.4 custom commands would not rebuild when rules changed. - In CMake 2.6.0 custom commands have a dependency on build.make which causes them to rebuild when changed, but also when any source is added or removed. This is too often. - We cannot have a per-rule file because Windows filesystems do not deal well with lots of small files. - Instead we add a persistent CMakeFiles/CMakeRuleHashes.txt file at the top of the build tree that is updated during each CMake Generate step. It records a hash of the build rule for each file to be built. When the hash changes the file is removed so that it will be rebuilt.
* BUG: Fix crash on repeated configure steps and exported targets.Brad King2008-05-271-10/+17
| | | | | | - In cmGlobalGenerator the ExportSets ivar must be cleared at the beginning of each Configure. - See issue #7101.
* BUG: Make sure all source files are found before generating.Brad King2008-05-121-0/+34
| | | | | | | | - Previously this was done implicitly by the check for a target link language which checked all source full paths. - The recent change to support computing a link language without finding all the source files skipped the implicit check. - This change adds an explicit check to find all source files.
* BUG: Remove check for files written by file(WRITE) being loaded.Brad King2008-04-301-1/+0
| | | | | | | | | | | | - CMake 1.8 and below did not do the check but could get in infinite loops due to the local generate step. - CMake 2.0 added the check but failed to perform it in directories with no targets (see bug #678). - CMake 2.2 removed the local generate which fixed the problem but did not remove the check. - Between CMake 2.4 and 2.6.0rc6 the check was fixed to work even when no targets appear in a directory (see bug #6923). - Bottom line: the check is no longer needed.
* BUG: Fix crash when CMAKE_BACKWARDS_COMPATIBILITY is not set.Brad King2008-03-041-3/+1
|
* ENH: Add global property ALLOW_DUPLICATE_CUSTOM_TARGETS to help existing ↵Brad King2008-02-141-0/+27
| | | | projects that depend on having duplicate custom targets. It is allowed only for Makefile generators. See bug#6348.
* ENH: Analyze inter-target dependencies to safely fix cyclesBrad King2008-02-061-138/+14
| | | | | | | | | | - Cycles may be formed among static libraries - Native build system should not have cycles in target deps - Create cmComputeTargetDepends to analyze dependencies - Identify conneced components and use them to fix deps - Diagnose cycles containing non-STATIC targets - Add debug mode property GLOBAL_DEPENDS_DEBUG_MODE - Use results in cmGlobalGenerator as target direct depends
* ENH: really Bill, using Ken's checkout, fix output in ctest so clean output ↵Ken Martin2008-02-011-6/+39
| | | | in build and test is not lost, also display the command lines used
* ENH: remove a const castBill Hoffman2008-01-311-1/+1
|
* ENH: remove constBill Hoffman2008-01-311-15/+15
|
* ENH: fix for bug 3218 dependant projects are written out automatically if ↵Bill Hoffman2008-01-301-3/+59
| | | | they are in the project. Also fix bug 5829, remove hard coded CMAKE_CONFIGURATION_TYPES from vs 7 generator
* ENH: Support exporting/importing of Framework targets.Brad King2008-01-281-2/+1
| | | | | | | | - Imported frameworks have the FRAMEWORK property set - Added cmTarget::IsFrameworkOnApple method to simplify checks - Also remove separate IMPORTED_ENABLE_EXPORTS property and just use ENABLE_EXPORTS since, like FRAMEWORK, it just represents the target type. - Document FRAMEWORK keyword in INSTALL command. - Updated IMPORTED_LOCATION property documentation for Frameworks
* ENH: Updated exporting and importing of targets to support libraries and ↵Brad King2008-01-281-28/+9
| | | | | | | | | | | | | | | | | | configurations. - Created cmExportFileGenerator hierarchy to implement export file generation - Installed exports use per-config import files loaded by a central one. - Include soname of shared libraries in import information - Renamed PREFIX to NAMESPACE in INSTALL(EXPORT) and EXPORT() commands - Move addition of CMAKE_INSTALL_PREFIX to destinations to install generators - Import files compute the installation prefix relative to their location when loaded - Add mapping of importer configurations to importee configurations - Rename IMPORT targets to IMPORTED targets to distinguish from windows import libraries - Scope IMPORTED targets within directories to isolate them - Place all properties created by import files in the IMPORTED namespace - Document INSTALL(EXPORT) and EXPORT() commands. - Document IMPORTED signature of add_executable and add_library - Enable finding of imported targets in cmComputeLinkDepends
* ENH: Implement linking with paths to library files instead of -L and -l ↵Brad King2008-01-221-1/+42
| | | | | | | | | | | | | | | | | separation. See bug #3832 - This is purely an implementation improvement. No interface has changed. - Create cmComputeLinkInformation class - Move and re-implement logic from: cmLocalGenerator::ComputeLinkInformation cmOrderLinkDirectories - Link libraries to targets with their full path (if it is known) - Dirs specified with link_directories command still added with -L - Make link type specific to library names without paths (name libfoo.a without path becomes -Wl,-Bstatic -lfoo) - Make directory ordering specific to a runtime path computation feature (look for conflicting SONAMEs instead of library names) - Implement proper rpath support on HP-UX and AIX.
* ENH: Add a dependency from the PACKAGE target to the ALL target so that ↵David Cole2007-12-311-0/+9
| | | | "make package" will first (essentially) do a "make all"... A similar chunk of code already existed for the make install target. This change makes it easy to build an installer package as part of a dashboard run simply by setting CTEST_BUILD_TARGET to "package".
* COMP: Fix build on VS6.Brad King2007-12-241-1/+5
|
* ENH: Moved global inter-target dependency analysis and cycle-prevention code ↵Brad King2007-12-231-54/+123
| | | | up from cmGlobalUnixMakefileGenerator3 to cmGlobalGenerator. Simplified cmGlobalUnixMakefileGenerator3 to use it. Later other generators may be modified to use it also.
* ENH: Add a depends check step to custom targets. Add support for the ↵Brad King2007-12-211-7/+0
| | | | IMPLICIT_DEPENDS feature of custom commands when building in custom targets. Convert multiple-output pair checks to be per-target instead of global.
* STYLE: Fixed line-too-long. COMP: Fixed warnings about lossy conversions.Brad King2007-11-201-1/+3
|
* ENH: Add ability to call Visual Studio macros from CMake. Add a CMake Visual ↵David Cole2007-11-161-0/+18
| | | | Studio macro to reload a solution file automatically if CMake makes changes to .sln files or .vcproj files. Add code to call the macro automatically for any running Visual Studio instances with the .sln file open at the end of the Visual Studio Generate call. Only call the macro if some .sln or .vcproj file changed during Generate. Also, add handling for REG_EXPAND_SZ type to SystemTools::ReadRegistryValue - returned string has environment variable references expanded.
* ENH: add f stuff to avoid warningsBill Hoffman2007-11-131-3/+3
|
* ENH: add guess progress for first time configuring a project.Bill Hoffman2007-11-131-0/+32
|
* ENH: change to make the documentation class more generic, about halfway ↵Ken Martin2007-10-221-3/+3
| | | | there, also provides secitons for Variables now
* ENH: Finish up the Framework creation code restructuring. Frameworks build ↵David Cole2007-10-101-0/+22
| | | | and install now. More work needed on the packaging step. See Tests/Framework for example use.
* STYLE: the temporary variable is not necessaryAlexander Neundorf2007-08-311-3/+1
| | | | Alex
* ENH: add support for Fortran to the KDevelop generatorAlexander Neundorf2007-08-311-2/+4
| | | | | | -minor optimization for GetLanguageEnabled() Alex
* ENH: add install files generators for targets which have PUBLIC_HEADER,Alexander Neundorf2007-08-271-2/+3
| | | | | | | PRIVATE_HEADER or RESOURCE_FILES property, use the destination for the public headers as include directory property for exported libraries Alex
* ENH: Handle FRAMEWORK and BUNDLE arguments in the INSTALL TARGETS command. ↵David Cole2007-08-221-2/+5
| | | | Work in progress... More to come.
* COMP: include windows.h first, as it is done in the other source filesAlexander Neundorf2007-08-171-6/+4
| | | | Alex
* COMP: quick windows name mangling fix (otherwise the compiler complains ↵Alexander Neundorf2007-08-161-0/+2
| | | | | | about cmMakefile::GetCurrentDirectoryA(), which doesn't exist) Alex
* ENH: move the code for the NOTFOUND checking into its own function, soAlexander Neundorf2007-08-161-60/+88
| | | | | | | | | | Configure() gets easier to overview -improve the error message, now it also says in which directories and for which targets the missing variables are used -minor speedup: the include directories don't have to be checked per target, per directory is enough Alex
* STYLE: I think the comment (and the book) were wrong about the naming ofAlexander Neundorf2007-08-071-1/+1
| | | | | | this file Alex
* BUG: Target exclusion-from-all tests should always use the root local ↵Brad King2007-08-031-91/+59
| | | | generator associated with the all target being tested.
* STYLE: fix line lengthsAlexander Neundorf2007-07-201-5/+7
| | | | Alex
* ENH: produce a lot more output when running with --debug-outputAlexander Neundorf2007-07-171-0/+3
| | | | | | -try to fix build error on HPUX Alex
* ENH: second try for handling the linker language with integer priority ↵Alexander Neundorf2007-07-121-11/+31
| | | | | | values (returning a pointer to a string on the stack is no good idea) Alex
* COMP: revert last commit for now, broke Visual StudioAlexander Neundorf2007-07-111-31/+11
| | | | Alex
* ENH: CMAKE_<LANG>_LINKER_PREFERENCE is now an integer priority, not aAlexander Neundorf2007-07-111-11/+31
| | | | | | | | | | | | | | | | | | | two-step priority (None or Prefered) Current order: ASM 0, C 10, Fortran 20, CXX 30, Java 40 This is the same order as automake choses: http://www.gnu.org/software/automake/manual/html_node/How-the-Linker-is-Chosen.html This change should be backward compatible: if there is a project using fortran and CXX, they had to set the LINKER_LANGUAGE explicitely, otherwise cmake complained (but still generated the project files). Explicitely setting the linker language still overrides automatic detection. If somebody has a custom language for cmake and the PREFERENCE starts with "P", its changed to 100, which gives it preference over all other languages (except the other custom languages which have also "Prefered"). "None" is converted to 0. Alex
* COMP: fix warning about unused parameterAlexander Neundorf2007-06-281-1/+1
| | | | Alex
* ENH: add OPTIONAL keyword to ENABLE_LANGUAGE, so it will be possible to doAlexander Neundorf2007-06-281-1/+1
| | | | | | | | | | | | | something like this: ENABLE_LANGUAGE(ASM-ATT) IF(CMAKE_ASM-ATT_COMPILER_WORKS) ... do assembler stufff ELSE(CMAKE_ASM-ATT_COMPILER_WORKS) ... fallback to generic C/C++ ENDIF(CMAKE_ASM-ATT_COMPILER_WORKS) Alex
* ENH: use CMAKE_SYSTEM instead of CMAKE_SYSTEM_NAME, sinceAlexander Neundorf2007-06-261-2/+2
| | | | | | | CMAKE_SYSTEM_NAME may already have been set when crosscompiling Alex
* COMP: fix broken tests for nowAlexander Neundorf2007-06-261-3/+3
| | | | Alex
* ENH: check for CMAKE_HOST_SYSTEM_NAME to decide whether to loadAlexander Neundorf2007-06-261-2/+2
| | | | | | | | | CMakeDetermineSystem.cmake, since CMAKE_SYSTEM_NAME might already be preset when using cmake for cross compiling use type STRING instead of FILEPATH since otherwise a strange filename was generated Alex
* ENH: add INSTALL(EXPORT ...) mode and INSTALL( TARGETS ... EXPORT <set> ) ,Alexander Neundorf2007-06-191-2/+40
| | | | | | tests still have to be added Alex
* ENH: Merging changes from branch CMake-SourceFile2-b between tagsBrad King2007-06-181-23/+17
| | | | | | | | | | | | | | | | | | | | | | | | CMake-SourceFile2-bp and CMake-SourceFile2-b-mp1 to trunk. This commit is surrounded by tags CMake-SourceFile2-b-mp1-pre and CMake-SourceFile2-b-mp1-post on the trunk. The changes re-implement cmSourceFile and the use of it to allow instances to be created much earlier. The use of cmSourceFileLocation allows locating a source file referenced by a user to be much simpler and more robust. The two SetName methods are no longer needed so some duplicate code has been removed. The strange "SourceName" stuff is gone. Code that created cmSourceFile instances on the stack and then sent them to cmMakefile::AddSource has been simplified and converted to getting cmSourceFile instances from cmMakefile. The CPluginAPI has preserved the old API through a compatibility interface. Source lists are gone. Targets now get real instances of cmSourceFile right away instead of storing a list of strings until the final pass. TraceVSDependencies has been re-written to avoid the use of SourceName. It is now called TraceDependencies since it is not just for VS. It is now implemented with a helper object which makes the code simpler.
* STYLE: minor fixesAlexander Neundorf2007-06-151-0/+4
| | | | Alex
* COMP: remove warning about unused variableAlexander Neundorf2007-06-121-1/+1
| | | | Alex
* STYLE: add a comment about SetLanguageEnabled()Alexander Neundorf2007-06-111-0/+7
| | | | | | -add a Generic.cmake for target platforms without operating system Alex