aboutsummaryrefslogtreecommitdiffstats
path: root/build/export_generators/hardcoded-cmake/cmake/global_flags.linker.msvc.cmake
blob: d70ff2c3f1a534b8e99f68dfce33a4621ff5f794 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_policy(SET CMP0091 NEW)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

add_link_options(
  /NOLOGO
  /ERRORREPORT:PROMPT
  /SUBSYSTEM:CONSOLE
  /TLBID:1
  /NXCOMPAT
  /IGNORE:4221
  /INCREMENTAL
)

if ((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") OR (CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64"))
  add_link_options(/MACHINE:X64)
endif()