Fail when we "force inline" and visual studio bypasses us. (#1025)

This commit is contained in:
Daniel Lemire 2020-07-06 17:53:32 -04:00 committed by GitHub
parent a4619a54a7
commit 770cee7139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ if("${MSVC_TOOLSET_VERSION}" STREQUAL "140")
target_compile_options(simdjson-internal-flags INTERFACE /W0 /sdl) target_compile_options(simdjson-internal-flags INTERFACE /W0 /sdl)
else() else()
# Recent version of Visual Studio expected (2017, 2019...). Prior versions are unsupported. # Recent version of Visual Studio expected (2017, 2019...). Prior versions are unsupported.
target_compile_options(simdjson-internal-flags INTERFACE /WX /W3 /sdl) target_compile_options(simdjson-internal-flags INTERFACE /WX /W3 /sdl /w34714) # https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4714?view=vs-2019
endif() endif()
else() else()
target_compile_options(simdjson-internal-flags INTERFACE -fPIC) target_compile_options(simdjson-internal-flags INTERFACE -fPIC)