cmake: Actually support delay loading on Windows

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-03-20 23:39:21 +01:00
parent ba1780afa6
commit 8f4313d8e8

View file

@ -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)