File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -157,11 +157,6 @@ function(add_ur_target_link_options name)
157
157
if (UR_DEVELOPER_MODE)
158
158
target_link_options (${name} PRIVATE -Werror -Wextra)
159
159
endif ()
160
- if (CMAKE_BUILD_TYPE STREQUAL "Release" )
161
- target_link_options (${name} PRIVATE
162
- $<$<CXX_COMPILER_ID:GNU>:-pie>
163
- )
164
- endif ()
165
160
endif ()
166
161
elseif (MSVC )
167
162
target_link_options (${name} PRIVATE
@@ -176,7 +171,15 @@ function(add_ur_target_link_options name)
176
171
endfunction ()
177
172
178
173
function (add_ur_target_exec_options name )
179
- if (MSVC )
174
+ if (NOT MSVC )
175
+ if (NOT APPLE )
176
+ if (CMAKE_BUILD_TYPE STREQUAL "Release" )
177
+ target_link_options (${name} PRIVATE
178
+ $<$<CXX_COMPILER_ID:GNU>:-pie>
179
+ )
180
+ endif ()
181
+ endif ()
182
+ elseif (MSVC )
180
183
target_link_options (${name} PRIVATE
181
184
LINKER:/ALLOWISOLATION
182
185
)
You can’t perform that action at this time.
0 commit comments