Hello everyone, This is certainly a known issue but I coulnd't find anything related to this needs on internet :
I got : an executable EX, a static library B and a static library C with cross dependencies : libB depends on libC and libC depends on libB. EX depends on libB If I write : TARGET_LINK_LIBRARIES(libB libC) TARGET_LINK_LIBRARIES(libC libB) TARGET_LINK_LIBRARIES(EX libB) Code compiles and everything is fine. But then I would like to compile with two different flavor of libC : libC1 and libC2 both available with one make. I want to do : TARGET_LINK_LIBRARIES(libB ???) TARGET_LINK_LIBRARIES(libC1 libB) TARGET_LINK_LIBRARIES(libC2 libB) TARGET_LINK_LIBRARIES(EX1 libB libC1) TARGET_LINK_LIBRARIES(EX2 libB libC2) Problem is that if I don't set the right TARGET_LINK_LIBRARIES for libB I got unresolved dependencies at EX1/2 link time for symbol resolved in libCXXX. Having a library libB1 and libB2 is not an option. Any idea anyone ? Thanks a lot Pierre
-- 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
