You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OvDelayLoad.cmake 533B

1234567891011121314
  1. FUNCTION(OV_DELAY_LOAD TARGET DLL)
  2. IF(WIN32)
  3. UNSET(FN_LINK_FLAGS)
  4. GET_TARGET_PROPERTY(FN_LINK_FLAGS ${TARGET} LINK_FLAGS)
  5. IF(FN_LINK_FLAGS)
  6. SET_TARGET_PROPERTIES(${TARGET} PROPERTIES LINK_FLAGS "${FN_LINK_FLAGS} /DELAYLOAD:${DLL}")
  7. ELSE(FN_LINK_FLAGS)
  8. SET_TARGET_PROPERTIES(${TARGET} PROPERTIES LINK_FLAGS "/DELAYLOAD:${DLL}")
  9. ENDIF(FN_LINK_FLAGS)
  10. TARGET_LINK_LIBRARIES(${TARGET} Delayimp)
  11. ELSE(WIN32)
  12. MESSAGE(WARNING "Ignored OV_DELAY_LOAD call on non WIN32 platform")
  13. ENDIF(WIN32)
  14. ENDFUNCTION(OV_DELAY_LOAD)