Skip to content

Commit

Permalink
gcore/CMakeLists.txt: fix to get GDALVersionInfo('BUILD') to report a…
Browse files Browse the repository at this point in the history
…gainst GEOS and CURL (master only fix)
  • Loading branch information
rouault committed Dec 10, 2024
1 parent 8fcd4f7 commit 5c222aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,14 @@ endif ()
if (GDAL_USE_GEOS)
target_compile_definitions(gcore PRIVATE -DHAVE_GEOS)
gdal_target_link_libraries(gcore PRIVATE ${GEOS_TARGET})
target_compile_definitions(gcore_gdal_misc PRIVATE -DHAVE_GEOS)
gdal_target_link_libraries(gcore_gdal_misc PRIVATE ${GEOS_TARGET})
endif ()

if (GDAL_USE_CURL)
# Just for gdal_misc.cpp in fact
target_compile_definitions(gcore PRIVATE -DHAVE_CURL)
gdal_target_link_libraries(gcore PRIVATE CURL::libcurl)
target_compile_definitions(gcore_gdal_misc PRIVATE -DHAVE_CURL)
gdal_target_link_libraries(gcore_gdal_misc PRIVATE CURL::libcurl)
endif ()

# Windows(Mingw/MSVC) link libraries
Expand Down

0 comments on commit 5c222aa

Please sign in to comment.