diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2008-03-14 19:18:04 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2008-03-14 19:18:04 (GMT) |
commit | 2edb9c4e328eec77e0a56178771a40af4574e5fa (patch) | |
tree | b77385f0046abfc1e9dee6592540be93adb91359 /Source/QtDialog/CMakeSetup.cxx | |
parent | 0f005630d371bedfaa8310978669c5a6d5f0a9b0 (diff) | |
download | CMake-2edb9c4e328eec77e0a56178771a40af4574e5fa.zip CMake-2edb9c4e328eec77e0a56178771a40af4574e5fa.tar.gz CMake-2edb9c4e328eec77e0a56178771a40af4574e5fa.tar.bz2 |
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.
Diffstat (limited to 'Source/QtDialog/CMakeSetup.cxx')
-rw-r--r-- | Source/QtDialog/CMakeSetup.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index e90ed16..bdc8a66 100644 --- a/Source/QtDialog/CMakeSetup.cxx +++ b/Source/QtDialog/CMakeSetup.cxx @@ -68,6 +68,13 @@ int main(int argc, char** argv) { 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++) { |