Skip to content

Commit

Permalink
gdal.cmake: add GDAL_EXTRA_LINK_LIBRARIES (upstream OSGeo4W patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 5, 2022
1 parent 4cdc268 commit e64b573
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gdal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,9 @@ add_subdirectory(scripts)

# Add all library dependencies of target gdal
get_property(GDAL_PRIVATE_LINK_LIBRARIES GLOBAL PROPERTY gdal_private_link_libraries)
target_link_libraries(${GDAL_LIB_TARGET_NAME} PRIVATE ${GDAL_PRIVATE_LINK_LIBRARIES})
# GDAL_EXTRA_LINK_LIBRARIES may be set by the user if the various FindXXXX modules
# didn't capture all required dependencies (used for example by OSGeo4W)
target_link_libraries(${GDAL_LIB_TARGET_NAME} PRIVATE ${GDAL_PRIVATE_LINK_LIBRARIES} ${GDAL_EXTRA_LINK_LIBRARIES})

# Document/Manuals
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/doc" AND BUILD_DOCS)
Expand Down

0 comments on commit e64b573

Please sign in to comment.