tools/CMakeLists.txt
changeset 4341 46b8791e577f
parent 4335 c279aeb615df
child 4775 663aa9552bfc
--- 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!")