Skip to content
  • Brad King's avatar
    CMakeDetermineCompilerABI: Link with standard libraries on MSVC · 03ad8f28
    Brad King authored
    In commit v2.8.0~395 (Implicit link info for C, CXX, and Fortran,
    2009-07-23) we added a '-DCMAKE_${lang}_STANDARD_LIBRARIES=' flag to the
    try_compile used to build the ABI detection project.  It is needed when
    detecting the implicit libraries added by the GNU compiler on Windows
    (MinGW tools) to avoid contaminating the list with standard Windows
    libraries.  However, with MSVC we do not detect such implicit link
    libraries anyway, and for some target platforms (e.g. Windows Phone) we
    may need the standard libraries to link the ABI detection executable.
    Drop the flag when detecting the ABI using MSVC.
    03ad8f28