• Brad King's avatar
    Test static linking with LINK_SEARCH_START_STATIC · 077954d4
    Brad King authored
    Add "LinkStatic" test that links a static executable against "libm.a".
    Pass both "/usr/lib/libm.a" and "-lm" to target_link_libraries to
    trigger the link type logic for both cases.  If CMake incorrectly
    switches the link type to shared for "-lm" then the link will fail.
Last commit
Last update
CMakeLists.txt Loading commit data...
LinkStatic.c Loading commit data...