Coder Social home page Coder Social logo

Comments (5)

DNedic avatar DNedic commented on July 25, 2024

Hello @ttanguay , thanks for the feedback. On first glance, this should be possible to integrate into our CMakeLists, however I'm interested if you would be able to test it, as I have never used MSVC.

from lockfree.

DNedic avatar DNedic commented on July 25, 2024

Apparently this cannot be fixed using CMake without affecting the linked targets, I've created a solution that checks for MSVC and then uses _MSVC_LANG. Please test it and provide feedback if you can.

from lockfree.

ttanguay avatar ttanguay commented on July 25, 2024

I will check out your latest commit.

from lockfree.

ttanguay avatar ttanguay commented on July 25, 2024

I tested with latest commit and the PopOptional method of spsc::Queue is now available in Visual Studio without needing that target_compile_options in CMake.

I am having some issues with the library when adding with CPMAddPackage. Everything works fine when I tested in main with a globally declared queue. But when I put the queue as a private member of a class I'm getting errors. Not sure if it's some conflict with another header I'm including or I just haven't linked the library in correctly. It works fine if I just include the header files for queue in the project directly. I'll try a few things. Do you have the proper cmake commands to add lockfree to a project using FetchContent... maybe i can use that instead and see if it's just a CPM issue.

Thanks.

from lockfree.

DNedic avatar DNedic commented on July 25, 2024

Thanks for the review, I will merge the PR, please open another issue for the CPM problem and post the output you're getting.

Please try the FetchContent with this code snippet:

Include(FetchContent)

FetchContent_Declare(
    lockfree
    GIT_REPOSITORY https://github.com/DNedic/lockfree.git
    GIT_TAG        2.0.2
)

FetchContent_MakeAvailable(lockfree)

from lockfree.

Related Issues (5)

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.