Skip to content

Commit 0bb5e5e

Browse files
Try to make link options add by add_sycl_to_target PRIVATE
1 parent a942bd3 commit 0bb5e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/IntelSYCLConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ Adding sycl to all sources but that may effect compilation times")
353353

354354
get_target_property(__sycl_link_options
355355
IntelSYCL::SYCL_CXX INTERFACE_LINK_OPTIONS)
356-
target_link_options(${SYCL_TARGET} PUBLIC "${__sycl_link_options}")
356+
target_link_options(${SYCL_TARGET} PRIVATE "${__sycl_link_options}")
357357
get_target_property(__sycl_link_directories
358358
IntelSYCL::SYCL_CXX INTERFACE_LINK_DIRECTORIES)
359359
target_link_directories(${SYCL_TARGET} PUBLIC "${__sycl_link_directories}")

0 commit comments

Comments
 (0)