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 @@ -131,17 +131,17 @@ function(add_ur_target_link_options name)
131
131
endif ()
132
132
elseif (MSVC )
133
133
target_link_options (${name} PRIVATE
134
- /DYNAMICBASE
135
- /HIGHENTROPYVA
136
- /NXCOMPAT
134
+ LINKER: /DYNAMICBASE
135
+ LINKER: /HIGHENTROPYVA
136
+ LINKER: /NXCOMPAT
137
137
)
138
138
endif ()
139
139
endfunction ()
140
140
141
141
function (add_ur_target_exec_options name )
142
142
if (MSVC )
143
143
target_link_options (${name} PRIVATE
144
- /ALLOWISOLATION
144
+ LINKER: /ALLOWISOLATION
145
145
)
146
146
endif ()
147
147
endfunction ()
@@ -159,7 +159,7 @@ function(add_ur_library name)
159
159
add_ur_target_link_options (${name} )
160
160
if (MSVC )
161
161
target_link_options (${name} PRIVATE
162
- $< $< STREQUAL:$< TARGET_LINKER_FILE_NAME:${name} > ,link.exe> :/DEPENDENTLOADFLAG:0x2000>
162
+ $< $< STREQUAL:$< TARGET_LINKER_FILE_NAME:${name} > ,link.exe> :LINKER: /DEPENDENTLOADFLAG:0x2000>
163
163
)
164
164
endif ()
165
165
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
@@ -194,7 +194,7 @@ if(UR_BUILD_ADAPTER_L0_V2)
194
194
195
195
if (WIN32 )
196
196
# 0x800: Search for the DLL only in the System32 folder
197
- target_link_options (ur_adapter_level_zero_v2 PUBLIC /DEPENDENTLOADFLAG:0x800 )
197
+ target_link_options (ur_adapter_level_zero_v2 PUBLIC LINKER: /DEPENDENTLOADFLAG:0x800 )
198
198
endif ()
199
199
200
200
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