From fa2568a5e33acf6af96c097505665cba6f607028 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 27 Jan 2021 10:39:39 +0100 Subject: Check loading of blacklisted dlls and show warning dialog at startup. Also show these dlls in sysinfo dialog. --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index acd8d465c..293cbcd79 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -140,6 +140,11 @@ target_link_libraries(PrusaSlicer libslic3r_gui) else () target_link_libraries(PrusaSlicer -ldl) endif () + if (WIN32) + include_directories(detours) + find_library(PSAPI_LIB NAMES Psapi) + target_link_libraries(PrusaSlicer ${PSAPI_LIB}) + endif () endif () # On Windows, a shim application is required to produce a console / non console version of the Slic3r application. -- cgit v1.2.3