diff --git a/faiss/python/CMakeLists.txt b/faiss/python/CMakeLists.txt index 5a01a759e7..c7b22d19c8 100644 --- a/faiss/python/CMakeLists.txt +++ b/faiss/python/CMakeLists.txt @@ -39,7 +39,7 @@ macro(configure_swigfaiss source) COMPILE_DEFINITIONS GPU_WRAPPER ) if (FAISS_ENABLE_ROCM) - set_source_files_properties(${source} PROPERTIES + set_property(SOURCE ${source} APPEND PROPERTY COMPILE_DEFINITIONS FAISS_ENABLE_ROCM ) endif()