vcpkg/ports/gdal/Fix-quote-variable.patch
JonLiu1993 24acb5f356
[vcpkg baseline][gdal] Fix quote variable error (#33332)
* [vcpkg baseline][gdal] Fix  quote variable error

* update version

---------

Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
2023-08-23 21:36:28 -07:00

14 lines
783 B
Diff

diff --git a/cmake/modules/packages/FindSPATIALITE.cmake b/cmake/modules/packages/FindSPATIALITE.cmake
index fa72773..813cca3 100644
--- a/cmake/modules/packages/FindSPATIALITE.cmake
+++ b/cmake/modules/packages/FindSPATIALITE.cmake
@@ -64,7 +64,7 @@ if(SPATIALITE_LIBRARY AND SPATIALITE_INCLUDE_DIR
AND NOT SPATIALITE_VERSION_STRING)
file(STRINGS "${SPATIALITE_INCLUDE_DIR}/spatialite.h" _spatialite_h_ver
REGEX "^[ \t]version[ \t]([0-9]+\\.[0-9]+),.*")
- string(REGEX REPLACE "[ \t]version[ \t]([0-9]+\\.[0-9]+),.*" "\\1" _spatialite_h_ver ${_spatialite_h_ver})
+ string(REGEX REPLACE "[ \t]version[ \t]([0-9]+\\.[0-9]+),.*" "\\1" _spatialite_h_ver "${_spatialite_h_ver}")
set(SPATIALITE_VERSION_STRING "${_spatialite_h_ver}")
endif()