File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.15 )
22cmake_policy (SET CMP0091 NEW )
33
4- message (STATUS "Read contents from vcpkg.json" )
5- file (READ "${CMAKE_SOURCE_DIR} /vcpkg.json" VCPKG_JSON_CONTENT )
4+ set (SQLITEMAP_VCPKG_JSON "${CMAKE_CURRENT_SOURCE_DIR} /vcpkg.json" )
5+ message (STATUS "Read contents from ${SQLITEMAP_VCPKG_JSON} " )
6+ file (READ ${SQLITEMAP_VCPKG_JSON} VCPKG_JSON_CONTENT )
67
7- message (STATUS "Extract version from vcpkg.json " )
8+ message (STATUS "Extract version from ${SQLITEMAP_VCPKG_JSON} " )
89string (REGEX MATCH "\" version-string\" [ \t ]*:[ \t ]*\" ([^\" ]+)\" " VERSION_MATCH "${VCPKG_JSON_CONTENT} " )
910if (VERSION_MATCH)
1011 string (REGEX REPLACE "\" version-string\" [ \t ]*:[ \t ]*\" ([^\" ]+)\" " "\\ 1" SQLITEMAP_VERSION "${VERSION_MATCH} " )
11- message (STATUS "Extracted version from vcpkg.json : ${SQLITEMAP_VERSION} " )
12+ message (STATUS "Extracted version from ${SQLITEMAP_VCPKG_JSON} : ${SQLITEMAP_VERSION} " )
1213else ()
13- message (FATAL_ERROR "Could not extract version from vcpkg.json " )
14+ message (FATAL_ERROR "Could not extract version from ${SQLITEMAP_VCPKG_JSON} " )
1415endif ()
1516
1617project (sqlitemap VERSION ${SQLITEMAP_VERSION} DESCRIPTION "sqlitemap is a lightweight wrapper around SQLite providing a map like interface" LANGUAGES CXX )
You can’t perform that action at this time.
0 commit comments