diff --git a/cmake/modules/packages/FindSPATIALITE.cmake b/cmake/modules/packages/FindSPATIALITE.cmake index d64daecefbc8..79827d9e19e5 100644 --- a/cmake/modules/packages/FindSPATIALITE.cmake +++ b/cmake/modules/packages/FindSPATIALITE.cmake @@ -56,7 +56,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()