global_flags.linker.msvc.cmake 364 B

12345678910111213141516
  1. cmake_policy(SET CMP0091 NEW)
  2. set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
  3. add_link_options(
  4. /NOLOGO
  5. /ERRORREPORT:PROMPT
  6. /SUBSYSTEM:CONSOLE
  7. /TLBID:1
  8. /NXCOMPAT
  9. /IGNORE:4221
  10. /INCREMENTAL
  11. )
  12. if ((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") OR (CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64"))
  13. add_link_options(/MACHINE:X64)
  14. endif()