--- a/tools/CMakeLists.txt Sun Nov 14 23:28:45 2010 +0100
+++ b/tools/CMakeLists.txt Mon Nov 15 04:30:11 2010 +0100
@@ -19,8 +19,8 @@
find_package(SPARKLE)
#use the associated tool from the libraries we've selected
- string(REGEX REPLACE "(.*)/include;-.*" "\\1" qt_base_dir "${QT_INCLUDE_DIR}")
- find_program(macdeployqt_EXE NAMES macdeployqt macdeployqt-mac PATH ${qt_base_dir})
+ string(REGEX REPLACE "(.*)/include.*" "\\1" qt_base_dir "${QT_INCLUDE_DIR}")
+ find_program(macdeployqt_EXE NAMES macdeployqt macdeployqt-mac PATHS ${qt_base_dir}/bin NO_DEFAULT_PATH)
if(NOT macdeployqt_EXE)
message(FATAL_ERROR "The utility macdeployqt is required to create the bundle!")