inie0722 / air-ctl Goto Github PK
View Code? Open in Web Editor NEWC Language Template Library C语言 模板库
License: Boost Software License 1.0
C Language Template Library C语言 模板库
License: Boost Software License 1.0
Could you please modify your PR with following files? Thank you!
vcpkg.json:
{
"name": "air-ctl",
"version": "1.0.0",
"description": "C template container library",
"homepage": "https://github.com/inie0722/CTL",
"license": "BSL-1.0",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
I saw that you are not using dllexport in the source, so I think it is possible to set this port to ONLY_STATIC_LIBRARY.
portfile.cmake:
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO inie0722/CTL
REF f8d89b4790e60c439d64b7d5dac6aa81596a79dc #v1.0.0
SHA512 9aa814e888ec8244dd42a32df08a187c4ec546d54ebff2c079a0cc3f0fb3da34776b8e9e03440fd10a1842cd02034545337dc15eae826ab78553d84966f5df78
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
For fixing the usage of this port in vcpkg, could you please modify your cmakelists.txt files as below? Thank you!
CMakeLists.txt: https://github.com/inie0722/CTL/blob/master/CMakeLists.txt
cmake_minimum_required(VERSION 3.00)
project(CTL)
set(CMAKE_CXX_STANDARD 17)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
include_directories(${CMAKE_SOURCE_DIR}/include/)
add_subdirectory(${CMAKE_SOURCE_DIR}/src)
if(Test)
enable_testing()
find_package(GTest CONFIG REQUIRED)
add_subdirectory(${CMAKE_SOURCE_DIR}/test)
endif()
TARGET_INCLUDE_DIRECTORIES(CTL INTERFACE $<INSTALL_INTERFACE:include>)
install(TARGETS CTL EXPORT air-ctl-config
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
install(EXPORT air-ctl-config
FILE air-ctl-config.cmake
NAMESPACE air-ctl::
DESTINATION share/air-ctl
)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/CTL
DESTINATION include
FILES_MATCHING
PATTERN *.h
)
src\CMakeLists.txt: https://github.com/inie0722/CTL/blob/master/src/CMakeLists.txt
file(GLOB allocator ./allocator/*)
file(GLOB container ./container/* ./adapter/*)
file(GLOB adapter ./adapter/*)
file(GLOB algorithm ./algorithm/*)
if(NOT BUILD_SHARED_LIBS)
add_library(CTL STATIC ${allocator} ${container} ${adapter} ${algorithm})
else()
add_library(CTL ${allocator} ${container} ${adapter} ${algorithm})
endif()
set_target_properties(CTL PROPERTIES OUTPUT_NAME "ctl")
if(UNIX OR APPLE)
target_link_libraries(CTL pthread)
endif()
After fdaf000 merged, I get an error in my local(Windows SDK 10.0.19042.1766).
Error message:
fatal error C1083: Cannot open include file: 'stdalign.h': No such file or directory
As for stdalign.h
, only Windows SDK 10.0.20348.0
or later version support it. I would like to know if there is any other workaround for this instead of upgrading my windows SDK?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.