[Cmake-commits] [cmake-commits] king committed cmTarget.cxx 1.226 1.227

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Sep 15 13:30:13 EDT 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv12193/Source

Modified Files:
	cmTarget.cxx 
Log Message:
ENH: Allow link line computation for static libs

In some cases it may be useful to compute a "link" line for a static
library even though it will not be put in the generated build system.
This removes the assertion which previously diallowed the case.


Index: cmTarget.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTarget.cxx,v
retrieving revision 1.226
retrieving revision 1.227
diff -C 2 -d -r1.226 -r1.227
*** cmTarget.cxx	4 Sep 2008 21:34:24 -0000	1.226
--- cmTarget.cxx	15 Sep 2008 17:30:11 -0000	1.227
***************
*** 3697,3703 ****
  cmTarget::GetLinkInformation(const char* config)
  {
-   // Link information does not make sense for static libraries.
-   assert(this->GetType() != cmTarget::STATIC_LIBRARY);
- 
    // Lookup any existing information for this configuration.
    std::map<cmStdString, cmComputeLinkInformation*>::iterator
--- 3697,3700 ----



More information about the Cmake-commits mailing list