View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003067CMakeCMakepublic2006-03-31 16:422006-03-31 18:01
ReporterTanner Lovelace 
Assigned ToBill Hoffman 
PrioritylowSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003067: Library link definitions not expanded if also using Frameworks
DescriptionOn OS X, when linking against both frameworks and libraries and using find_library to find said frameworks and libraries, link parameters for libraries are not setup correctly if also linking against a framework.

For instance, this depends line in CMakeCache.txt:

//Dependencies for the target
kdecore_LIB_DEPENDS:STATIC=/opt/qt4/lib/QtCore.framework;-lpthread;/opt/qt4/lib/Qt3Support.framework;/opt/qt4/lib/QtGui.framework;DCOP;/usr/lib/libz.dylib;-framework Carbon;resolv;/fink/lib/libbz2.dylib;dl;

gets translated to this link line:

    cd /Users/lovelace/src/kdelibs-build2/kdecore && /usr/bin/c++ -fno-common -O2 -g -dynamiclib -headerpad_max_install_names -single_module -multiply_defined suppress -o ../lib/libkdecore.dylib.5.0.0 -install_name /Users/lovelace/src/kdelibs-build2/lib/libkdecore.dylib.5 $(kdecore_OBJECTS) $(kdecore_EXTERNAL_OBJECTS) -L/Users/lovelace/src/kdelibs-build2/lib -L/Users/lovelace/src/kdelibs-build2/lib/. -L/usr/local/lib -F/opt/qt4/lib -framework QtCore -lpthread -framework Qt3Support -framework QtGui -lDCOP -framework Carbon -lresolv -ldl -framework QtCore -lpthread

Note that none of the dependent libraries have been added to the link line.

I have attached a patch to correct this behavior.
TagsNo tags attached.
Attached Filespatch file icon cmake-framework-library.patch [^] (913 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0003941)
Bill Hoffman (manager)
2006-03-31 18:01

fixed in cvs, thanks!

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team