On Jun 16, 2015, at 3:27 PM, Gregor Jasny <gja...@googlemail.com> wrote:

> Hello,
> 
> I applied some fixes to what becomes CMake 3.3. could you please test
> the release candidate?
> 
> On 16/06/15 16:27, Michael Jackson wrote:
>> Running OS X 10.8.5 with Xcode 5.1.1 and Cmake 3.2.x and 3.3.RC and neither 
>> generate a Xcode project file that can be opened by Xcode. We get valid 
>> Ninja and Makefile projects for our project. I was wondering if anyone else 
>> has seen this issue. Not sure if there is something in our project that is 
>> hanging up CMake.
> 
> Could you share your project.pbxproj file (if don't want to share it
> here you could also mail it to me directly).
> 
> Thanks,
> Gregor

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 also want to recognize "git" for being helpful in all of this which allowed 
to quickly figure out which commit broke the Xcode functionality.

Hope this helps someone in the future.
Mike Jackson

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to