diff options
author | Shauren <shauren.trinity@gmail.com> | 2020-08-04 15:50:31 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-26 14:20:47 +0100 |
commit | 41fe9a84d499a56e2631e20970d33367d7585391 (patch) | |
tree | 77da0f20c9968ce7f1cc9d5d7d5c7f60e9f8c0f2 /cmake/compiler/msvc | |
parent | 58d199db480358aa88a427245f4f4716447fa3f3 (diff) |
Build: Enable /permissive- flag on msvc
(cherry picked from commit c8fed48b161cfff5fa90d8bf4342ede88086ada4)
Diffstat (limited to 'cmake/compiler/msvc')
-rw-r--r-- | cmake/compiler/msvc/settings.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake index 14e686ba00f..40f8dd342ee 100644 --- a/cmake/compiler/msvc/settings.cmake +++ b/cmake/compiler/msvc/settings.cmake @@ -21,6 +21,11 @@ target_compile_options(trinity-warning-interface INTERFACE /W3) +# disable permissive mode to make msvc more eager to reject code that other compilers don't already accept +target_compile_options(trinity-compile-option-interface + INTERFACE + /permissive-) + # set up output paths ofr static libraries etc (commented out - shown here as an example only) #set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) #set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) |