From 8f4313d8e85475743c30e631a9cf1e1be848e1f2 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 20 Mar 2020 23:39:21 +0100 Subject: [PATCH] cmake: Actually support delay loading on Windows --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1bf21510..10cb5e96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -703,6 +703,9 @@ target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBRARIES} ) if(WIN32) + target_link_libraries(${PROJECT_NAME} + Delayimp.lib + ) foreach(DELAYLOAD ${PROJECT_LIBRARIES_DELAYED}) get_target_property(_lf ${PROJECT_NAME} LINK_FLAGS) if (NOT _lf)