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)
131131 endif ()
132132 elseif (MSVC )
133133 target_link_options (${name} PRIVATE
134- /DYNAMICBASE
135- /HIGHENTROPYVA
136- /NXCOMPAT
134+ LINKER: /DYNAMICBASE
135+ LINKER: /HIGHENTROPYVA
136+ LINKER: /NXCOMPAT
137137 )
138138 endif ()
139139endfunction ()
140140
141141function (add_ur_target_exec_options name )
142142 if (MSVC )
143143 target_link_options (${name} PRIVATE
144- /ALLOWISOLATION
144+ LINKER: /ALLOWISOLATION
145145 )
146146 endif ()
147147endfunction ()
@@ -159,7 +159,7 @@ function(add_ur_library name)
159159 add_ur_target_link_options(${name} )
160160 if (MSVC )
161161 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>
163163 )
164164 endif ()
165165endfunction ()
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function(add_ur_adapter name)
1313
1414 configure_file (${CMAKE_CURRENT_SOURCE_DIR} /../adapter.def.in ${ADAPTER_VERSION_SCRIPT} @ONLY)
1515 set_target_properties (${name} PROPERTIES
16- LINK_FLAGS " /DEF:${ADAPTER_VERSION_SCRIPT} "
16+ LINK_OPTIONS "LINKER: /DEF:${ADAPTER_VERSION_SCRIPT} "
1717 )
1818 elseif (APPLE )
1919 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)
100100
101101 if (WIN32 )
102102 # 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)
104104 endif ()
105105
106106 target_link_libraries (ur_adapter_level_zero PRIVATE
@@ -194,7 +194,7 @@ if(UR_BUILD_ADAPTER_L0_V2)
194194
195195 if (WIN32 )
196196 # 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)
198198 endif ()
199199
200200 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)
2828 set (LOADER_VERSION_SCRIPT ${CMAKE_CURRENT_BINARY_DIR} /ur_loader.def)
2929 configure_file (${CMAKE_CURRENT_SOURCE_DIR} /loader.def.in ${LOADER_VERSION_SCRIPT} @ONLY)
3030 set_target_properties (ur_loader PROPERTIES
31- LINK_FLAGS " /DEF:${LOADER_VERSION_SCRIPT} "
31+ LINK_OPTIONS "LINKER: /DEF:${LOADER_VERSION_SCRIPT} "
3232 )
3333elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
3434 set (TARGET_LIBNAME libur_loader_${PROJECT_VERSION_MAJOR} .${PROJECT_VERSION_MINOR} )
You can’t perform that action at this time.
0 commit comments