mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-10-03 15:27:25 +00:00
Added MSVC options to CMakeLists.txt.
This commit is contained in:
+8
-6
@@ -38,8 +38,7 @@ endforeach()
|
|||||||
project(unity
|
project(unity
|
||||||
VERSION ${UNITY_HEADER_VERSION_MAJOR}.${UNITY_HEADER_VERSION_MINOR}.${UNITY_HEADER_VERSION_BUILD}
|
VERSION ${UNITY_HEADER_VERSION_MAJOR}.${UNITY_HEADER_VERSION_MINOR}.${UNITY_HEADER_VERSION_BUILD}
|
||||||
LANGUAGES C
|
LANGUAGES C
|
||||||
DESCRIPTION "C Unit testing framework."
|
DESCRIPTION "C Unit testing framework.")
|
||||||
)
|
|
||||||
|
|
||||||
# Main target ------------------------------------------------------------------
|
# Main target ------------------------------------------------------------------
|
||||||
add_library(${PROJECT_NAME} STATIC)
|
add_library(${PROJECT_NAME} STATIC)
|
||||||
@@ -86,7 +85,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 +102,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
|
||||||
|
|||||||
Reference in New Issue
Block a user