From 61385f9dd44c69cf1419ea3d24bb0a3ba3682423 Mon Sep 17 00:00:00 2001 From: Oraoto Date: Tue, 7 Aug 2018 02:10:38 +0800 Subject: [PATCH] Windows: link against python (#484) --- visualdl/logic/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/visualdl/logic/CMakeLists.txt b/visualdl/logic/CMakeLists.txt index ef6f1df1..93a38132 100644 --- a/visualdl/logic/CMakeLists.txt +++ b/visualdl/logic/CMakeLists.txt @@ -42,6 +42,9 @@ if (APPLE) endif() if (MSVC) + ## On Windows, we still link againt python library + target_link_libraries(core PRIVATE python) + ## Name the libraries as *.pyd set_target_properties(core PROPERTIES PREFIX "" SUFFIX ".pyd") add_custom_command(TARGET core POST_BUILD COMMAND "${CMAKE_COMMAND}" -E copy -- GitLab