nva/nvapy: Fix nvapy python module import
Without this the following error occurs when importing the nvapy module:
>>> import nvapy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: nva/nvapy.so: undefined symbol: gpu_list
Fixes: ("Single Source of Truth.")
@@ -84,6 +84,7 @@ if (NOT DISABLE_NVA)
MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/nvapy.pyx)
add_library(nvapy MODULE ${CMAKE_CURRENT_BINARY_DIR}/nvapy.c nva.c ../nvhw/chipset.c)
set_target_properties(nvapy PROPERTIES PREFIX "")
+ target_link_libraries(nvapy cgen)
target_link_libraries(nvapy ${PC_PYTHON_LIBRARIES} ${PC_PCIACCESS_LIBRARIES})
if (NVAPY_PATH)
install(TARGETS nvapy DESTINATION ${NVAPY_PATH})
