Skip to content

Commit

Permalink
Merge pull request #963 from jiezzhang/jiezzhang/fix-win-linker-issue
Browse files Browse the repository at this point in the history
Gather linker flags to prevent /link break linking stage
  • Loading branch information
tomdeakin authored Nov 14, 2024
2 parents a0b35ca + 3abff7e commit f24ec41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindDPCPP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ set_target_properties(DPCPP::Runtime PROPERTIES

set(CMAKE_CXX_COMPILER ${DPCPP_CXX_EXECUTABLE})
# Use DPC++ compiler instead of default linker for building SYCL application
set(CMAKE_CXX_LINK_EXECUTABLE "${DPCPP_CXX_EXECUTABLE} <FLAGS> \
<CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
set(CMAKE_CXX_LINK_EXECUTABLE "${DPCPP_CXX_EXECUTABLE} <FLAGS> <OBJECTS> -o <TARGET> \
<CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>")

function(add_sycl_to_target)
set(options)
Expand Down

0 comments on commit f24ec41

Please sign in to comment.