File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,10 @@ function(setup_executable_target target_name)
62
62
-Wall -Wconversion -Wextra -Wextra-semi -Wshadow -Wsign-conversion -Wsuggest-override
63
63
-Wunreachable-code -Wno-parentheses -Wno-logical-not-parentheses
64
64
$< $< OR:$< CONFIG:Release> ,$< CONFIG:MinSizeRel> > :-ffunction-sections -fdata-sections> )
65
- target_link_options (${target_name} PRIVATE
66
- $< $< OR:$< CONFIG:Release> ,$< CONFIG:MinSizeRel> > :-s> )
65
+ if (UNIX AND NOT APPLE )
66
+ target_link_options (${target_name} PRIVATE
67
+ $< $< OR:$< CONFIG:Release> ,$< CONFIG:MinSizeRel> > :-s> )
68
+ endif ()
67
69
endif ()
68
70
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
69
71
target_compile_options (${target_name} PRIVATE -stdlib=libc++ -Wextra-semi-stmt -Wshadow-all )
@@ -75,7 +77,7 @@ function(setup_executable_target target_name)
75
77
endif ()
76
78
if (MSVC )
77
79
target_compile_options (${target_name} PRIVATE
78
- /W4 /permissive /sdl /utf-8 /Za /Zc:__cplusplus /Zc:rvalueCast /Zc:inline
80
+ /bigobj / W4 /permissive /sdl /utf-8 /Za /Zc:__cplusplus /Zc:rvalueCast /Zc:inline
79
81
/Zc:strictStrings /Zc:throwingNew /Zc:referenceBinding /Zc:wchar_t )
80
82
target_link_options (${target_name} PRIVATE
81
83
$< $< OR:$< CONFIG:Release> ,$< CONFIG:MinSizeRel> > :/OPT:REF /OPT:ICF> )
You can’t perform that action at this time.
0 commit comments