Ticket #48331: patch-Modules-CMakeDetermineCompilerId.cmake.release.diff

File patch-Modules-CMakeDetermineCompilerId.cmake.release.diff, 660 bytes (added by ryandesign (Ryan Carsten Schmidt), 9 years ago)
  • Modules/CMakeDetermineCompilerId.cmake

    Do not bail if the compiler id is specified twice in the test file.
    This allows cmake compiler detection to work even when building universal.
    http://public.kitware.com/pipermail/cmake-developers/2015-September/026586.html
    old new  
    435435    foreach(info ${CMAKE_${lang}_COMPILER_ID_STRINGS})
    436436      if("${info}" MATCHES "INFO:compiler\\[([^]\"]*)\\]")
    437437        if(COMPILER_ID)
    438           set(COMPILER_ID_TWICE 1)
    439438        endif()
    440439        set(COMPILER_ID "${CMAKE_MATCH_1}")
    441440      endif()