From 5c222aa5e112638270933d096842bb21a90e2133 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 10 Dec 2024 16:21:13 +0100 Subject: [PATCH] gcore/CMakeLists.txt: fix to get GDALVersionInfo('BUILD') to report against GEOS and CURL (master only fix) --- gcore/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcore/CMakeLists.txt b/gcore/CMakeLists.txt index 44fa975bf8ed..1625d408500b 100644 --- a/gcore/CMakeLists.txt +++ b/gcore/CMakeLists.txt @@ -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