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.

TargetLinkDirectories.cmake 495B

123456789101112
  1. # Compatibility replacement of target_link_directories() for older cmake
  2. if(${CMAKE_VERSION} VERSION_LESS "3.13.0")
  3. function(target_link_directories TARGET SCOPE)
  4. get_target_property(INTERFACE_LINK_LIBRARIES ${TARGET} INTERFACE_LINK_LIBRARIES)
  5. foreach(DIRECTORY ${ARGN})
  6. list(INSERT INTERFACE_LINK_LIBRARIES 0 "-L${DIRECTORY}")
  7. endforeach()
  8. set_target_properties(${TARGET} PROPERTIES
  9. INTERFACE_LINK_LIBRARIES "${INTERFACE_LINK_LIBRARIES}")
  10. endfunction()
  11. endif()