File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,9 @@ if (MSVC)
144
144
endif ()
145
145
146
146
# This function allows building multiple libraries with the same options.
147
- # Currently used by sycl and plugins library.
148
- function ( add_libcxxsupport_gccworkaround LIB_NAME)
147
+ # Currently used by sycl and plugins library.
148
+ # Currently handles linking with libcxx support and gcc workaround
149
+ function ( add_common_options LIB_NAME)
149
150
if (SYCL_USE_LIBCXX)
150
151
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU" ) OR
151
152
(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" ))
@@ -169,7 +170,7 @@ function( add_libcxxsupport_gccworkaround LIB_NAME)
169
170
endif ()
170
171
171
172
endif ()
172
- endfunction (add_libcxxsupport_gccworkaround)
173
+ endfunction (add_common_options)
173
174
174
175
# SYCL runtime library
175
176
add_subdirectory ( source )
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ target_link_libraries( pi_opencl
32
32
PRIVATE ${OpenCL_LIBRARIES}
33
33
)
34
34
35
- add_libcxxsupport_gccworkaround (pi_opencl)
35
+ add_common_options (pi_opencl)
36
36
37
37
install (TARGETS pi_opencl
38
38
LIBRARY DESTINATION "lib" COMPONENT pi_opencl
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function(add_sycl_rt_library LIB_NAME)
27
27
PRIVATE ${CMAKE_DL_LIBS}
28
28
)
29
29
30
- add_libcxxsupport_gccworkaround (${LIB_NAME} )
30
+ add_common_options (${LIB_NAME} )
31
31
32
32
endfunction (add_sycl_rt_library)
33
33
You can’t perform that action at this time.
0 commit comments