Skip to content

Commit

Permalink
FindSPATIALITE.cmake: quote variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Aug 8, 2023
1 parent f25058c commit 3739145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/packages/FindSPATIALITE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 3739145

Please sign in to comment.