Set -g and -Werror only with DESKTOP_APP_SPECIAL_TARGET on macOS just like on Linux
This commit is contained in:
parent
a88d82e41b
commit
f8f80b5cb6
1 changed files with 8 additions and 2 deletions
|
|
@ -25,9 +25,7 @@ endif()
|
|||
target_compile_options(common_options
|
||||
INTERFACE
|
||||
-pipe
|
||||
-g
|
||||
-Wall
|
||||
-Werror
|
||||
-W
|
||||
-fPIE
|
||||
-Wno-deprecated-declarations # temp for range-v3
|
||||
|
|
@ -42,6 +40,14 @@ INTERFACE
|
|||
-Wno-pragma-system-header-outside-header
|
||||
)
|
||||
|
||||
if (DESKTOP_APP_SPECIAL_TARGET)
|
||||
target_compile_options(common_options
|
||||
INTERFACE
|
||||
-g
|
||||
-Werror
|
||||
)
|
||||
endif()
|
||||
|
||||
target_link_frameworks(common_options
|
||||
INTERFACE
|
||||
Cocoa
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue