Git Product home page Git Product logo

air-ctl's People

Contributors

inie0722 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

air-ctl's Issues

'stdalign.h' could not find

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?

Make this library work on vcpkg

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()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.