[CMake] bug ? issue with EXPORT_LIBRARY_DEPENDENCIES

Alexander Neundorf a.neundorf-work at gmx.net
Tue Nov 14 16:58:08 EST 2006


Hi,

it seems there's a problem with EXPORT_LIBRARY_DEPENDENCIES(). If there is a library where both the debug and the optimized version are available, both end up in the dependency lib, but not separated by the debug/optimized keywords.
A testcase is attached. At first build and install demo/dbgtest/, and after that run cmake on demo/dbgtestapp/, then have a look at the file blub.deps.
I think if you have something like
set(SOMELIB optimized somelib debug somelibd)
target_link_libraries(mycoollib ${SOMELIB})
export_library_dependencies(depsfile)

then it should be either
SET(mycoollib_LIB_DEPENDS "optimized;somelib;debug;somelibd")
or 
SET(mycoollib_LIB_DEPENDS "somelib") or SET(mycoollib_LIB_DEPENDS "somelibd") depending on which library was actually used when building.

This affects building KDE on windows, since there both versions of QtCore are found and linked, and so there will be random crashes due to this from what I heard.

Bye
Alex

-- 
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo.tar.gz
Type: application/x-tgz
Size: 531 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20061114/0f20510a/demo.tar.bin


More information about the CMake mailing list