2012/1/8 Hauke Heibel <[email protected]>:
> Hi again,
>
> I created a little example that shows the problem. It won't actually
> compile anything but it should help in understanding my problem.
I'm not sure how you compile your example.
Should they be built in-source?
Do you create out-of-source build tree for each A,B,SomeProject?
However from your last message it seems like you
export(TARGETS B A ...
statements depends on the fact that A (resp B.) is an imported target or not.
So may be you could add
get_target_property(IA IMPORTED A)
if (NOT IA)
set(EXPORTEDA "A")
else()
set(EXPORTEDA "")
endif()
export(TARGETS B ${EXPORTEDA} ...
Would this work for you use case?
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
--
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://www.cmake.org/mailman/listinfo/cmake