[Cmake-commits] [cmake-commits] clinton committed CMakeSetup.cxx 1.17 1.18

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Mar 14 15:18:06 EDT 2008


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

Modified Files:
	CMakeSetup.cxx 
Log Message:

ENH:  Prevent loading standard qt plugins at runtime (which we dont' care about).
      This can cause problems if a Mac bundle doesn't contain the plugins.



Index: CMakeSetup.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/CMakeSetup.cxx,v
retrieving revision 1.17
retrieving revision 1.18
diff -C 2 -d -r1.17 -r1.18
*** CMakeSetup.cxx	19 Feb 2008 19:06:10 -0000	1.17
--- CMakeSetup.cxx	14 Mar 2008 19:18:04 -0000	1.18
***************
*** 69,72 ****
--- 69,79 ----
    QApplication app(argc, argv);
    
+   // clean out standard Qt paths for plugins, which we don't use anyway
+   // when creating Mac bundles, it potentially causes problems
+   foreach(QString p, QApplication::libraryPaths())
+     {
+     QApplication::removeLibraryPath(p);
+     }
+   
    // if arg for install 
    for(int i =0; i < argc; i++)



More information about the Cmake-commits mailing list