1
0
Fork 0

Set -g and -Werror only with DESKTOP_APP_SPECIAL_TARGET on macOS just like on Linux

This commit is contained in:
Ilya Fedin 2020-08-11 05:26:31 +04:00 committed by John Preston
parent a88d82e41b
commit f8f80b5cb6

View file

@ -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