1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 08:25:58 +01:00

Added MSVC options to CMakeLists.txt.

This commit is contained in:
Carson Holloway
2020-07-18 21:52:00 +10:00
parent 0126e4804c
commit 6fecc8eb38

View File

@@ -86,7 +86,9 @@ target_compile_options(${PROJECT_NAME}
-Wno-missing-braces -Wno-missing-braces
-Wold-style-cast -Wold-style-cast
-Wshadow -Wshadow
-Wweak-vtables> -Wweak-vtables
-Werror
-Wall>
$<$<C_COMPILER_ID:GNU>:-Waddress $<$<C_COMPILER_ID:GNU>:-Waddress
-Waggregate-return -Waggregate-return
-Wformat-nonliteral -Wformat-nonliteral
@@ -101,9 +103,10 @@ target_compile_options(${PROJECT_NAME}
-Wno-unused-parameter -Wno-unused-parameter
-Wunreachable-code -Wunreachable-code
-Wwrite-strings -Wwrite-strings
-Wpointer-arith> -Wpointer-arith
-Wall
-Werror -Werror
-Wall>
$<$<C_COMPILER_ID:MSVC>:/Wall>
) )
write_basic_package_version_file(${PROJECT_NAME}ConfigVersion.cmake write_basic_package_version_file(${PROJECT_NAME}ConfigVersion.cmake