File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -130,17 +130,17 @@ function(add_ur_target_link_options name)
130
130
endif ()
131
131
elseif (MSVC )
132
132
target_link_options (${name} PRIVATE
133
- /DYNAMICBASE
134
- /HIGHENTROPYVA
135
- /NXCOMPAT
133
+ LINKER: /DYNAMICBASE
134
+ LINKER: /HIGHENTROPYVA
135
+ LINKER: /NXCOMPAT
136
136
)
137
137
endif ()
138
138
endfunction ()
139
139
140
140
function (add_ur_target_exec_options name )
141
141
if (MSVC )
142
142
target_link_options (${name} PRIVATE
143
- /ALLOWISOLATION
143
+ LINKER: /ALLOWISOLATION
144
144
)
145
145
endif ()
146
146
endfunction ()
@@ -158,7 +158,7 @@ function(add_ur_library name)
158
158
add_ur_target_link_options (${name} )
159
159
if (MSVC )
160
160
target_link_options (${name} PRIVATE
161
- $< $< STREQUAL:$< TARGET_LINKER_FILE_NAME:${name} > ,link.exe> :/DEPENDENTLOADFLAG:0x2000>
161
+ $< $< STREQUAL:$< TARGET_LINKER_FILE_NAME:${name} > ,link.exe> :LINKER: /DEPENDENTLOADFLAG:0x2000>
162
162
)
163
163
endif ()
164
164
endfunction ()
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function(add_ur_adapter name)
13
13
14
14
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /../adapter.def.in ${ADAPTER_VERSION_SCRIPT} @ONLY )
15
15
set_target_properties (${name} PROPERTIES
16
- LINK_FLAGS " /DEF:${ADAPTER_VERSION_SCRIPT} "
16
+ LINK_OPTIONS "LINKER: /DEF:${ADAPTER_VERSION_SCRIPT} "
17
17
)
18
18
elseif (APPLE )
19
19
target_compile_options (${name} PRIVATE "-fvisibility=hidden" )
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ if(UR_BUILD_ADAPTER_L0)
100
100
101
101
if (WIN32 )
102
102
# 0x800: Search for the DLL only in the System32 folder
103
- target_link_options (ur_adapter_level_zero PRIVATE /DEPENDENTLOADFLAG:0x800 )
103
+ target_link_options (ur_adapter_level_zero PRIVATE LINKER: /DEPENDENTLOADFLAG:0x800 )
104
104
endif ()
105
105
106
106
target_link_libraries (ur_adapter_level_zero PRIVATE
@@ -193,7 +193,7 @@ if(UR_BUILD_ADAPTER_L0_V2)
193
193
194
194
if (WIN32 )
195
195
# 0x800: Search for the DLL only in the System32 folder
196
- target_link_options (ur_adapter_level_zero_v2 PUBLIC /DEPENDENTLOADFLAG:0x800 )
196
+ target_link_options (ur_adapter_level_zero_v2 PUBLIC LINKER: /DEPENDENTLOADFLAG:0x800 )
197
197
endif ()
198
198
199
199
target_link_libraries (ur_adapter_level_zero_v2 PRIVATE
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ if (MSVC)
28
28
set (LOADER_VERSION_SCRIPT ${CMAKE_CURRENT_BINARY_DIR} /ur_loader.def )
29
29
configure_file (${CMAKE_CURRENT_SOURCE_DIR} /loader.def.in ${LOADER_VERSION_SCRIPT} @ONLY )
30
30
set_target_properties (ur_loader PROPERTIES
31
- LINK_FLAGS " /DEF:${LOADER_VERSION_SCRIPT} "
31
+ LINK_OPTIONS "LINKER: /DEF:${LOADER_VERSION_SCRIPT} "
32
32
)
33
33
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
34
34
set (TARGET_LIBNAME libur_loader_${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} )
You can’t perform that action at this time.
0 commit comments