Nick Gnedin wrote:
> That doubles the size of the executable, because if I do something like
> that:
>
> ADD_LIBRARY(temp STATIC ${sources})
> TARGET_LINK_LIBRARIES(temp outside_deps)
>
> ADD_EXECUTABLE(code main.cpp)
> TARGET_LINK_LIBRARIES(code temp)
>
> then TARGET_LINK_LIBRARIES(...) also add outside_deps as link libraries
> for code, so they end up included twice.You can't link anything into a static library, so it will end up being linked in only once anyway. Eike --
signature.asc
Description: This is a digitally signed message part.
-- 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
