mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
9cbeb922dd
LLD automatically resolves newly encountered symbols using object files previously encountered. Also, the Emscripten compiler driver invokes the LLD linker with `--whole-archive ... --no-whole-archive` around all the libraries. Therefore we should not repeat any. Issue: #27232 Suggested-by: Marc Chevrier <marc.chevrier@gmail.com>
11 lines
309 B
CMake
11 lines
309 B
CMake
enable_language(C)
|
|
|
|
add_library(circular1 STATIC circular1.c)
|
|
add_library(circular2 STATIC circular2.c)
|
|
|
|
target_link_libraries(circular1 PRIVATE circular2)
|
|
target_link_libraries(circular2 PRIVATE circular1)
|
|
|
|
add_executable(main_circular main_circular.c)
|
|
target_link_libraries(main_circular PRIVATE circular1)
|