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
|
target_compile_options(common_options
|
||||||
INTERFACE
|
INTERFACE
|
||||||
-pipe
|
-pipe
|
||||||
-g
|
|
||||||
-Wall
|
-Wall
|
||||||
-Werror
|
|
||||||
-W
|
-W
|
||||||
-fPIE
|
-fPIE
|
||||||
-Wno-deprecated-declarations # temp for range-v3
|
-Wno-deprecated-declarations # temp for range-v3
|
||||||
|
|
@ -42,6 +40,14 @@ INTERFACE
|
||||||
-Wno-pragma-system-header-outside-header
|
-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
|
target_link_frameworks(common_options
|
||||||
INTERFACE
|
INTERFACE
|
||||||
Cocoa
|
Cocoa
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue