Skip to content

Commit

Permalink
add DEPENDENTLOADFLAG linker flag on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pbalcer committed Jun 20, 2024
1 parent a1094cd commit a472f45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ function(add_ur_library name)
add_library(${name} ${ARGN})
add_ur_target_compile_options(${name})
add_ur_target_link_options(${name})
if(MSVC)
target_link_options(${name} PRIVATE
$<$<STREQUAL:$<TARGET_LINKER_FILE_NAME:${name}>,link.exe>:/DEPENDENTLOADFLAG:0x2000>
)
endif()
endfunction()

include(FetchContent)
Expand Down

0 comments on commit a472f45

Please sign in to comment.