[cmake-developers] [CMake 0013303]: Strange issues when using "target_link_libraries" to link stlport and boost on XCode 4

Mantis Bug Tracker mantis at public.kitware.com
Thu Jun 14 11:09:46 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13303 
====================================================================== 
Reported By:                tree
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13303
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-06-14 11:09 EDT
Last Modified:              2012-06-14 11:09 EDT
====================================================================== 
Summary:                    Strange issues when using "target_link_libraries" to
link stlport and boost on XCode 4
Description: 
I orgnize stlport libraries in two directories like:
stlport/Debug/libstlportstlg.5.2.1.dylib (represented as A)
stlport/Release/libstlport.5.2.dylib (represented as B)

and then use command
target_link_libraries(taget debug ${A})
target_link_libraries(taget optimized ${B})

After generating XCode project, I found in "Building Settings/Other Linker
Flags", both the two libraries exist under both "Debug" and "RelWithDebInfo".

In happens to boost either. But for other libraries it works as expected.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-06-14 11:09 tree           New Issue                                    
======================================================================




More information about the cmake-developers mailing list