CMake: fix linking error in test function when linking Python statically

This commit is contained in:
wmayer
2023-02-19 20:26:24 +01:00
committed by wwmayer
parent c14f58d6f3
commit 519d26e13c

View File

@@ -25,6 +25,13 @@ if(MSVC)
endif()
endif()
if(NOT BUILD_DYNAMIC_LINK_PYTHON)
list(APPEND Google_Tests_LIBS
${PYTHON_LIBRARIES}
)
endif()
add_executable(Tests_run)
add_subdirectory(lib)
add_subdirectory(src)