[Cmake-commits] [cmake-commits] king committed cmExportFileGenerator.cxx 1.11 1.12

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Mar 13 17:04:34 EDT 2008


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

Modified Files:
	cmExportFileGenerator.cxx 
Log Message:
ENH: Add cmake_policy push/version/pop to import/export files.


Index: cmExportFileGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmExportFileGenerator.cxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -C 2 -d -r1.11 -r1.12
*** cmExportFileGenerator.cxx	24 Feb 2008 19:05:11 -0000	1.11
--- cmExportFileGenerator.cxx	13 Mar 2008 21:04:32 -0000	1.12
***************
*** 21,24 ****
--- 21,25 ----
  #include "cmSystemTools.h"
  #include "cmTarget.h"
+ #include "cmVersion.h"
  
  #include <cmsys/auto_ptr.hxx>
***************
*** 80,83 ****
--- 81,89 ----
  
    // Start with the import file header.
+   os << "CMAKE_POLICY(PUSH)\n"
+      << "CMAKE_POLICY(VERSION "
+      << cmVersion::GetMajorVersion() << "."
+      << cmVersion::GetMinorVersion() << "."
+      << cmVersion::GetPatchVersion() << ")\n";
    this->GenerateImportHeaderCode(os);
  
***************
*** 87,90 ****
--- 93,97 ----
    // End with the import file footer.
    this->GenerateImportFooterCode(os);
+   os << "CMAKE_POLICY(POP)\n";
  
    return result;



More information about the Cmake-commits mailing list