[cmake-developers] [CMake 0013048]: CMake 2.8.7 Nightly fails to link correctly in XCode 4.3

Mantis Bug Tracker mantis at public.kitware.com
Sat Mar 17 09:16:55 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=13048 
====================================================================== 
Reported By:                Karthik Kumar Viswanathan
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13048
Category:                   CMake
Reproducibility:            always
Severity:                   block
Priority:                   immediate
Status:                     new
====================================================================== 
Date Submitted:             2012-03-17 09:16 EDT
Last Modified:              2012-03-17 09:16 EDT
====================================================================== 
Summary:                    CMake 2.8.7 Nightly fails to link correctly in XCode
4.3
Description: 
Hi,

I generated the CMake Xcode 4.3 project...

Karthiks-MacBook-Air:allegro5engine karthik$ cmake -version
cmake version 2.8.7.20120313-ga2183

I am creating a library, then linking to it.

I use:
add_library(engine ${EngineFiles})

and it emits to Build/ Src/Debug-iphone/engine.a

When I link, I use:

target_link_libraries(main engine ${AllLibraries} ${ExtraLibraries}
${CMAKE_EXTRA_LINKER_FLAGS})

but it tries to link against:

Build/ Src/Debug/engine.a

This CMake used to work perfectly in Xcode 4.2.... It's breaking with 4.3.1.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-03-17 09:16 Karthik Kumar ViswanathanNew Issue                             
      
======================================================================




More information about the cmake-developers mailing list