cmake: Actually support delay loading on Windows
This commit is contained in:
parent
ba1780afa6
commit
8f4313d8e8
|
@ -703,6 +703,9 @@ target_link_libraries(${PROJECT_NAME}
|
||||||
${PROJECT_LIBRARIES}
|
${PROJECT_LIBRARIES}
|
||||||
)
|
)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
target_link_libraries(${PROJECT_NAME}
|
||||||
|
Delayimp.lib
|
||||||
|
)
|
||||||
foreach(DELAYLOAD ${PROJECT_LIBRARIES_DELAYED})
|
foreach(DELAYLOAD ${PROJECT_LIBRARIES_DELAYED})
|
||||||
get_target_property(_lf ${PROJECT_NAME} LINK_FLAGS)
|
get_target_property(_lf ${PROJECT_NAME} LINK_FLAGS)
|
||||||
if (NOT _lf)
|
if (NOT _lf)
|
||||||
|
|
Loading…
Reference in New Issue