-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.7.4, 4.8.0
-
None
Out of source building is currently broken when adding a custom Info.list file (and consequently also an icon) on Mac OS X.
Consider this layout:
{{
src/ |-- app.pro |-- Info.plist |-- icon.icns |-- build/ |-- app.app (to be created by make)
}}
Go to build and run qmake ../app.pro.
The problem lies within qmake, which "fixifies" the Info.plist path from "Info.plist" to "../Info.plist" and then can't find the find the file anymore, as qmake changes the cwd to the .pro file's directory (thus, in this example, src/).
Add both parameters out_d and in_d to MakefileGenerator::fileFixify as Option::output_dir to prevent qmake from "fixing" the file path to a path relative from the (out of source) build dir to the source dir, so that exists() can actually find the file where ever it is, specified by the user and relative to the source dir.