The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13380 
====================================================================== 
Reported By:                Jay Sistar
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13380
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2012-07-06 07:46 EDT
Last Modified:              2012-07-06 07:46 EDT
====================================================================== 
Summary:                    Xcode paths generated incorrectly
Description: 
This is problem is seen in 2 places:

1. CMake leaves the product paths (paths to library files and executables)
blank, so it's impossible to tell which has been build, and which hasn't.

2. Many paths in Xcode must be relative paths from the Xcode project for Xcode
to work properly. CMake accounts for this nuance, but it does so as if the
project file were at the root of the source. Doing any out of source builds (the
common case, I believe) results in the inability to open files in sub-projects
(projects that were included by a CMake "add_subdirectory(project_dir)" that has
a CMakeLists.txt with a "project(project_name)" statement at the top of it,
which were most likely external to the project, and through the use of git
submodules or similar mechanisms, were included as part of the build of the
outer project.

Steps to Reproduce: 
I've attached a file called "TheMainApp.tar.bz2" It consists of an application
and 2 libraries. The application is at the root.

1. On a Mac with Xcode: from the root ("TheMainApp/") do a "mkdir build; cd
build; cmake -G Xcode .."
2. Do a "open TheMainApp.xcodeproj"
3. In the file browser panel (on the left side of the Xcode window) Look at the
"Product" folder, as well as the "ConsolePrinter" and "Sleeper" folders. You
will see that they are in red.

Under normal circumstances, the Product folder files will be red until they are
built, but because the path doesn't exist (that can be seen in Xcode 4 or later
in the panel on the right side of the window) these Products will always be red.

Additional Information: 
It should be noted that everything still builds correctly, it's only the IDE
that has problems, but that seriously attenuates development speed in Xcode when
using CMake.

To whomever picks-up this ticket: Thank you very much for the great product that
is CMake! It has made my cross platform development much easier.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-07-06 07:46 Jay Sistar     New Issue                                    
2012-07-06 07:46 Jay Sistar     File Added: TheMainApp.tar.bz2                  
 
======================================================================

--

Powered by www.kitware.com

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

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

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

Reply via email to