Skip to content

Support for Visual Studio generator #9

@ZeCroque

Description

@ZeCroque

Hi!
First of all, thanks for your work ! It's really useful and appreciated :)
That said, I'm currently struggling to integrate this template in my workflow since I'm using VS for my job and I feel like I'd be wasting my time learning how to debug with other tools (I guess you're using VSC and some dedicated plugins ?). I managed to generate a .sln by modifying the CMakePresets.json and it partially works : I can compile the dll but only in release mode. When compiling in debug mode I got an error about _ITERATOR_DEBUG_LEVEL being mismatched between my project and the linked spdlog lib. I tried to add _ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH as a compile definition in my project but then the error shows up when linking spdlog to the CommonLibSF lib.
After some investigation, I realized that CommonLibSF requires the iterator to be set to 0, and it's enforced with static_assert in the sources. That's an unusual behavior in debug mode of course but I understand that the offsets would be wrong otherwise. And of course spdlog sets it to 2 in its debug lib as it should normally be.
Do you know any workaround to this issue ? Would you consider adding VS support to the template ?
Kind regards,
ZeCroque

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions