[CMake] Xcode project generation failed
Gregor Jasny
gjasny at googlemail.com
Wed Jun 17 14:51:39 EDT 2015
On 17/06/15 16:29, Michael Jackson wrote:
> Just to follow up with this issue in case anyone else has issues with Xcode here is what happened. Thanks to Gregor for taking a look at the generated project file he was able to identify an issue where there were file paths in the form of "//" inside the project file. They specifically showed in the form of: /* // */. This was enough to throw the Xcode parser and send Xcode into the spin-of-death. The root cause of the issue is that I had a cmake variable that held all my source files. In that list was a file path, where the path was completely created through cmake variables,
>
> set(FOO_FILE "${SomethingLib_path}/${SOME_HEADER_PATH})
>
> but neither of those variables had been defined for this project. (Copy paste mistake). This resulted in the cmake variable (FOO_FILE from above) being empty but still included as a source in the add_library() call. Fixing the cmake variables fixed the Xcode generation issue.
I will create a topic branch with a fixed Xcode generator.
Thanks,
Gregor
More information about the CMake
mailing list