Browse Source

modules: updated FindCorrade.cmake.

pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
3c394532ed
  1. 5
      modules/FindCorrade.cmake

5
modules/FindCorrade.cmake

@ -474,8 +474,9 @@ foreach(_component ${Corrade_FIND_COMPONENTS})
# Interconnect library # Interconnect library
if(_component STREQUAL Interconnect) if(_component STREQUAL Interconnect)
# Disable /OPT:ICF on MSVC, which merges functions with identical # Disable /OPT:ICF on MSVC, which merges functions with identical
# contents and thus breaks signal comparison # contents and thus breaks signal comparison. Same case is for
if(CORRADE_TARGET_WINDOWS AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") # clang-cl which uses the MSVC linker by default.
if(CORRADE_TARGET_WINDOWS AND (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC"))
if(CMAKE_VERSION VERSION_LESS 3.13) if(CMAKE_VERSION VERSION_LESS 3.13)
set_property(TARGET Corrade::${_component} PROPERTY set_property(TARGET Corrade::${_component} PROPERTY
INTERFACE_LINK_LIBRARIES "-OPT:NOICF,REF") INTERFACE_LINK_LIBRARIES "-OPT:NOICF,REF")

Loading…
Cancel
Save