• Brad King's avatar
    Disable shared library support when compiler links statically · 8b4873a1
    Brad King authored
    When a user or a compiler wrapper adds '-static' to the compiler flags
    then it will always link static binaries.  Detect this from the compiler
    id binary and disable TARGET_SUPPORTS_SHARED_LIBS.  This will prevent
    projects from accidentally adding shared libraries when the toolchain
    does not support them.  It also helps CMake avoid linking with flags
    that require shared libraries to be supported.
    8b4873a1
CMakeCXXInformation.cmake 10.4 KB