Commit 2391a3f3 authored by Lotrado's avatar Lotrado
Browse files

Silenced MSVC LNK4221 warning about empty compilation units. Such units appear...

Silenced MSVC LNK4221 warning about empty compilation units. Such units appear because they are used for basic validation of header files that only contain e.g. template code.
parent 57d23603
......@@ -56,6 +56,8 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
elseif(MSVC)
set(MIRRAGE_DEFAULT_COMPILER_ARGS /DWIN32_LEAN_AND_MEAN /DNOMINMAX /MP)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ignore:4221")
set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} /ignore:4221")
endif()
# Select optimal linker
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment