The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=13866 ====================================================================== Reported By: Alexey Pelykh Assigned To: ====================================================================== Project: CMake Issue ID: 13866 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2013-01-22 02:11 EST Last Modified: 2013-01-22 02:11 EST ====================================================================== Summary: target_link_libraries does threats '-Wl,--whole-library -lmy_lib -Wl,--no-whole-library' entirely as linker flags Description: According to documentation: If a library name matches that of another target in the project a dependency will automatically be added in the build system to make sure the library being linked is up-to-date before the target links. Item names starting with '-', but not '-l' or '-framework', are treated as linker flags.
-lmy_lib must be understood by CMake as library reference, but it does not, since my_lib dependencies (LINK_PUBLIC"ed in my_lib project) does not appear in linking phase of host project ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-01-22 02:11 Alexey Pelykh New Issue ====================================================================== -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
