diff --git a/options_mac.cmake b/options_mac.cmake index 32e6967..92d9aaa 100644 --- a/options_mac.cmake +++ b/options_mac.cmake @@ -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