mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-30 03:34:27 +01:00
Refactor generator expressions for CMake
This commit is contained in:
@@ -99,38 +99,49 @@ set_target_properties(${PROJECT_NAME}
|
|||||||
|
|
||||||
target_compile_options(${PROJECT_NAME}
|
target_compile_options(${PROJECT_NAME}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
$<$<C_COMPILER_ID:Clang>:-Wcast-align
|
# Clang
|
||||||
-Wcast-qual
|
$<$<C_COMPILER_ID:Clang>:
|
||||||
-Wconversion
|
-Wcast-align
|
||||||
-Wexit-time-destructors
|
-Wcast-qual
|
||||||
-Wextra-semi-stmt
|
-Wconversion
|
||||||
-Wglobal-constructors
|
-Wexit-time-destructors
|
||||||
-Wmissing-noreturn
|
-Wglobal-constructors
|
||||||
-Wmissing-prototypes
|
-Wmissing-noreturn
|
||||||
-Wno-missing-braces
|
-Wmissing-prototypes
|
||||||
-Wold-style-cast
|
-Wno-missing-braces
|
||||||
-Wshadow
|
-Wold-style-cast
|
||||||
-Wweak-vtables
|
-Wshadow
|
||||||
-Werror
|
-Wweak-vtables
|
||||||
-Wall>
|
-Werror
|
||||||
$<$<C_COMPILER_ID:GNU>:-Waddress
|
-Wall
|
||||||
-Waggregate-return
|
$<$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,8.0.0>:-Wextra-semi-stmt>
|
||||||
-Wformat-nonliteral
|
>
|
||||||
-Wformat-security
|
|
||||||
-Wformat
|
# GCC
|
||||||
-Winit-self
|
$<$<C_COMPILER_ID:GNU>:
|
||||||
-Wmissing-declarations
|
-Waddress
|
||||||
-Wmissing-include-dirs
|
-Waggregate-return
|
||||||
-Wno-multichar
|
-Wformat-nonliteral
|
||||||
-Wno-parentheses
|
-Wformat-security
|
||||||
-Wno-type-limits
|
-Wformat
|
||||||
-Wno-unused-parameter
|
-Winit-self
|
||||||
-Wunreachable-code
|
-Wmissing-declarations
|
||||||
-Wwrite-strings
|
-Wmissing-include-dirs
|
||||||
-Wpointer-arith
|
-Wno-multichar
|
||||||
-Werror
|
-Wno-parentheses
|
||||||
-Wall>
|
-Wno-type-limits
|
||||||
$<$<C_COMPILER_ID:MSVC>:/Wall>
|
-Wno-unused-parameter
|
||||||
|
-Wunreachable-code
|
||||||
|
-Wwrite-strings
|
||||||
|
-Wpointer-arith
|
||||||
|
-Werror
|
||||||
|
-Wall
|
||||||
|
>
|
||||||
|
|
||||||
|
# MSVC
|
||||||
|
$<$<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