From 36df55ad93679a72be5883f218c77cad6bfe6b5f Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Wed, 20 Nov 2024 20:44:15 +0100 Subject: [PATCH] hello_imgui_test_engine_cmake: fix win debug build / python lib path --- .../hello_imgui_test_engine_cmake.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hello_imgui_test_engine_integration/hello_imgui_test_engine_cmake.cmake b/src/hello_imgui_test_engine_integration/hello_imgui_test_engine_cmake.cmake index bea86e6d..fda2d910 100644 --- a/src/hello_imgui_test_engine_integration/hello_imgui_test_engine_cmake.cmake +++ b/src/hello_imgui_test_engine_integration/hello_imgui_test_engine_cmake.cmake @@ -117,6 +117,11 @@ function(configure_imgui_test_engine_with_python_gil) # Not linking with Python::Python will fail outside of skbuild... target_link_libraries(imgui_test_engine PUBLIC Python::Python) endif() + + if (WIN32) + # Band aid for windows debug build, where the python lib may not be found... + target_link_directories(imgui_test_engine PUBLIC ${Python_LIBRARY_DIRS}) + endif() endfunction()