mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:49:08 +08:00
[immer] Add export CMake ConfigVersion file (#28873)
* [immer] Add export CMake ConfigVersion file * update version * add comment for patch * x-add-version * add quote * update version
This commit is contained in:
parent
8b034a7612
commit
608e7ff107
19
ports/immer/fix-ExportConfigVersion.patch
Normal file
19
ports/immer/fix-ExportConfigVersion.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a8cfbd3..84c89a0 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -96,6 +96,14 @@ target_include_directories(immer INTERFACE
|
||||
$<BUILD_INTERFACE:${immer_SOURCE_DIR}/>
|
||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
||||
install(TARGETS immer EXPORT ImmerConfig)
|
||||
+
|
||||
+include(CMakePackageConfigHelpers)
|
||||
+write_basic_package_version_file(
|
||||
+ "${CMAKE_CURRENT_BINARY_DIR}/ImmerConfigVersion.cmake"
|
||||
+ VERSION ${PROJECT_VERSION}
|
||||
+ COMPATIBILITY SameMajorVersion )
|
||||
+
|
||||
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ImmerConfigVersion.cmake" DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Immer" )
|
||||
install(EXPORT ImmerConfig DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Immer")
|
||||
install(DIRECTORY immer DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
|
@ -1,12 +1,13 @@
|
||||
# header-only library
|
||||
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO arximboldi/immer
|
||||
REF v${VERSION}
|
||||
REF "v${VERSION}"
|
||||
SHA512 fc34242d36efdb9faa1f22ccc7591c1ace34c2b383e1266a290346baedc154e3d4a682d6dd5094460b75e123347194710072e996d19165cc5fd23c922fdfc4e8
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-ExportConfigVersion.patch # Upstream PR https://github.com/arximboldi/immer/pull/250 has been merged, this patch need to be removed in next update.
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "immer",
|
||||
"version": "0.8.0",
|
||||
"port-version": 1,
|
||||
"description": "Postmodern immutable and persistent data structures for C++",
|
||||
"homepage": "https://sinusoid.es/immer/",
|
||||
"license": "BSL-1.0",
|
||||
|
@ -3142,7 +3142,7 @@
|
||||
},
|
||||
"immer": {
|
||||
"baseline": "0.8.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"implot": {
|
||||
"baseline": "0.14",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e133c376f7ef7d4e7c8b78245b70231e8df5b601",
|
||||
"version": "0.8.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "9e996304abce149829a2d0db1156bcf34c9e51c8",
|
||||
"version": "0.8.0",
|
||||
|
Loading…
Reference in New Issue
Block a user