summaryrefslogtreecommitdiffstats
path: root/Modules/Linker/MSVC.cmake
blob: c6e2269bf47278c4aad896e136646189b9e9e3a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file LICENSE.rst or https://cmake.org/licensing for details.


# This module is shared by multiple linkers; use include blocker.
include_guard()


macro(__linker_msvc lang)
  # Linker warning as error
  set(CMAKE_${lang}_LINK_OPTIONS_WARNING_AS_ERROR "LINKER:-WX")
endmacro()