File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,14 @@ if (UNIX)
183
183
else ()
184
184
set (_compiler_definitions "SYCL_EXT_ONEAPI_COMPLEX" )
185
185
endif ()
186
- set_source_files_properties (
187
- ${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source /elementwise_functions.cpp
188
- PROPERTIES COMPILE_DEFINITIONS "${_compiler_definitions} "
189
- )
186
+ foreach (_src_fn ${_elementwise_sources} )
187
+ get_source_file_property (_cmpl_options_defs ${_src_fn} COMPILE_DEFINITIONS )
188
+ set (_combined_options_defs ${_cmpl_options_defs} "${_compiler_definitions} " )
189
+ set_source_files_properties (
190
+ ${_src_fn}
191
+ PROPERTIES COMPILE_DEFINITIONS "${_combined_options_defs} "
192
+ )
193
+ endforeach ()
190
194
191
195
target_compile_options (${python_module_name} PRIVATE -fno-sycl-id-queries-fit-in-int)
192
196
target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel)
You can’t perform that action at this time.
0 commit comments