mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 09:20:16 +01:00
Separate CMake function for pervasive C++ flags, reuse it in modules
This commit is contained in:
committed by
Leland Lucius
parent
3943d1479f
commit
fe8659f435
@@ -1005,7 +1005,6 @@ list( APPEND RESOURCES
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
BUILDING_AUDACITY
|
||||
WXINTL_NO_GETTEXT_MACRO
|
||||
WXUSINGDLL
|
||||
CMAKE
|
||||
$<$<BOOL:${HAVE_LRINT}>:
|
||||
@@ -1024,14 +1023,7 @@ list( APPEND DEFINES
|
||||
>
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/permissive->
|
||||
$<$<CXX_COMPILER_ID:AppleClang,Clang>:-Wno-underaligned-exception-object>
|
||||
$<$<CXX_COMPILER_ID:AppleClang,Clang>:-Werror=return-type>
|
||||
$<$<CXX_COMPILER_ID:AppleClang,Clang>:-Werror=dangling-else>
|
||||
$<$<CXX_COMPILER_ID:AppleClang,Clang>:-Werror=return-stack-address>
|
||||
)
|
||||
audacity_append_common_compiler_options( OPTIONS )
|
||||
|
||||
list( APPEND LDFLAGS
|
||||
PRIVATE
|
||||
|
||||
Reference in New Issue
Block a user