Update python/src/CMakeLists.txt

This commit is contained in:
Hyunsung Lee 2025-04-20 12:05:18 +09:00 committed by GitHub
parent b13f2aed16
commit 49afaf8f44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,6 +51,7 @@ set_target_properties(
${MLX_PYTHON_BINDINGS_OUTPUT_DIRECTORY})
target_link_libraries(core PRIVATE mlx)
target_include_directories(core PRIVATE nanobind::nanobind)
target_compile_definitions(core PRIVATE _VERSION_=${MLX_VERSION})
if(BUILD_SHARED_LIBS)