[cmake-commits] king committed cmInstallCommand.cxx 1.23 1.24

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Jun 27 16:14:52 EDT 2007


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

Modified Files:
	cmInstallCommand.cxx 
Log Message:
BUG: Do not install the import library for an executable that does not have ENABLE_EXPORTS set.


Index: cmInstallCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmInstallCommand.cxx,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- cmInstallCommand.cxx	19 Jun 2007 17:10:21 -0000	1.23
+++ cmInstallCommand.cxx	27 Jun 2007 20:14:50 -0000	1.24
@@ -573,7 +573,8 @@
         // On DLL platforms an executable may also have an import
         // library.  Install it to the archive destination if it
         // exists.
-        if(dll_platform && archive_destination)
+        if(dll_platform && archive_destination &&
+           target.GetPropertyAsBool("ENABLE_EXPORTS"))
           {
           // The import library uses the ARCHIVE properties.
           archiveGenerator = new cmInstallTargetGenerator(target, 



More information about the Cmake-commits mailing list