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 @@ -106,17 +106,17 @@ function(add_ur_target_link_options name)
106
106
endif ()
107
107
elseif (MSVC )
108
108
target_link_options (${name} PRIVATE
109
- /DYNAMICBASE
110
- /HIGHENTROPYVA
111
- /NXCOMPAT
109
+ LINKER: /DYNAMICBASE
110
+ LINKER: /HIGHENTROPYVA
111
+ LINKER: /NXCOMPAT
112
112
)
113
113
endif ()
114
114
endfunction ()
115
115
116
116
function (add_ur_target_exec_options name )
117
117
if (MSVC )
118
118
target_link_options (${name} PRIVATE
119
- /ALLOWISOLATION
119
+ LINKER: /ALLOWISOLATION
120
120
)
121
121
endif ()
122
122
endfunction ()
@@ -134,7 +134,7 @@ function(add_ur_library name)
134
134
add_ur_target_link_options (${name} )
135
135
if (MSVC )
136
136
target_link_options (${name} PRIVATE
137
- $< $< STREQUAL:$< TARGET_LINKER_FILE_NAME:${name} > ,link.exe> :/DEPENDENTLOADFLAG:0x2000>
137
+ $< $< STREQUAL:$< TARGET_LINKER_FILE_NAME:${name} > ,link.exe> :LINKER: /DEPENDENTLOADFLAG:0x2000>
138
138
)
139
139
endif ()
140
140
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 @@ -85,7 +85,7 @@ if(UR_BUILD_ADAPTER_L0)
85
85
86
86
if (WIN32 )
87
87
# 0x800: Search for the DLL only in the System32 folder
88
- target_link_options (ur_adapter_level_zero PRIVATE /DEPENDENTLOADFLAG:0x800 )
88
+ target_link_options (ur_adapter_level_zero PRIVATE LINKER: /DEPENDENTLOADFLAG:0x800 )
89
89
endif ()
90
90
91
91
target_link_libraries (ur_adapter_level_zero PRIVATE
@@ -178,7 +178,7 @@ if(UR_BUILD_ADAPTER_L0_V2)
178
178
179
179
if (WIN32 )
180
180
# 0x800: Search for the DLL only in the System32 folder
181
- target_link_options (ur_adapter_level_zero_v2 PUBLIC /DEPENDENTLOADFLAG:0x800 )
181
+ target_link_options (ur_adapter_level_zero_v2 PUBLIC LINKER: /DEPENDENTLOADFLAG:0x800 )
182
182
endif ()
183
183
184
184
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