mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-04-28 12:47:57 +03:00
Suppress MSVC warnings C4711 and C5045 during compilation
This commit is contained in:
parent
9500859043
commit
aa58dd5f68
1 changed files with 7 additions and 0 deletions
|
@ -54,6 +54,13 @@ else()
|
|||
set(IS_RELEASE_BUILD ON)
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
add_compile_options(
|
||||
/wd4711 # Suppresses `function 'xxxxx' selected for automatic inline expansion` messages
|
||||
/wd5045 # Suppresses `Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified` messages
|
||||
)
|
||||
endif()
|
||||
|
||||
# LTO takes too much memory and time using MSVC.
|
||||
if (NOT MSVC AND IS_RELEASE_BUILD)
|
||||
set(DEFAULT_ENABLE_LTO ON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue