Link against Python libraries for compatibility with pybind11 >= v2.13

This commit is contained in:
Arnim Balzer 2024-07-17 07:18:07 +01:00
parent 075395620a
commit 3274fd4c5e
No known key found for this signature in database
GPG Key ID: 785EF903F0917AB7

View File

@ -14,6 +14,7 @@ set(NAME_LENGTH 128 CACHE STRING "The length of a name in the buffer")
pybind11_add_module(TracyClientBindings SHARED bindings/Module.cpp) pybind11_add_module(TracyClientBindings SHARED bindings/Module.cpp)
target_link_libraries(TracyClientBindings PUBLIC TracyClient) target_link_libraries(TracyClientBindings PUBLIC TracyClient)
target_link_libraries(TracyClientBindings PUBLIC ${Python_LIBRARIES})
target_compile_definitions(TracyClientBindings PUBLIC BUFFER_SIZE=${BUFFER_SIZE}) target_compile_definitions(TracyClientBindings PUBLIC BUFFER_SIZE=${BUFFER_SIZE})
target_compile_definitions(TracyClientBindings PUBLIC NAME_LENGTH=${NAME_LENGTH}) target_compile_definitions(TracyClientBindings PUBLIC NAME_LENGTH=${NAME_LENGTH})