[nlohmann-fifo-map] Fix Could not find a package "nlohmann-fifo-map" (#10850)

This commit is contained in:
Lily 2020-04-17 02:55:00 +08:00 committed by GitHub
parent 648396545c
commit 8834bbc7b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -1,12 +1,12 @@
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.1)
project(nlohmann_fifo_map LANGUAGES CXX) project(nlohmann-fifo-map LANGUAGES CXX)
include(GNUInstallDirs) include(GNUInstallDirs)
set(NLOHMANN_FIFO_MAP_TARGET_NAME ${PROJECT_NAME}) set(NLOHMANN_FIFO_MAP_TARGET_NAME ${PROJECT_NAME})
set(NLOHMANN_FIFO_MAP_INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/nlohmann") set(NLOHMANN_FIFO_MAP_INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/nlohmann")
set(NLOHMANN_FIFO_MAP_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/nlohmann-fifo-map") set(NLOHMANN_FIFO_MAP_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/nlohmann-fifo-map")
set(NLOHMANN_FIFO_MAP_CONFIG_EXPORT_NAME "${PROJECT_NAME}_config") set(NLOHMANN_FIFO_MAP_CONFIG_EXPORT_NAME "${PROJECT_NAME}-config")
set(NLOHMANN_FIFO_MAP_INCLUDE_BUILD_DIR "${CMAKE_SOURCE_DIR}/src/") set(NLOHMANN_FIFO_MAP_INCLUDE_BUILD_DIR "${CMAKE_SOURCE_DIR}/src/")
add_library(${NLOHMANN_FIFO_MAP_TARGET_NAME} INTERFACE) add_library(${NLOHMANN_FIFO_MAP_TARGET_NAME} INTERFACE)

View File

@ -1,3 +1,4 @@
Source: nlohmann-fifo-map Source: nlohmann-fifo-map
Version: 2018.05.07 Version: 2018.05.07-1
Homepage: https://github.com/nlohmann/fifo_map
Description: a FIFO-ordered associative container for C++ Description: a FIFO-ordered associative container for C++

View File

@ -1,5 +1,3 @@
include(vcpkg_common_functions)
vcpkg_from_github( vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO nlohmann/fifo_map REPO nlohmann/fifo_map