← All tasks
cppopen-source-parsers/jsoncpp #1111Not a task: already works

Static linking using Visual Studio 2019

envgap__open-source-parsers__jsoncpp-1111

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
ac2870298ed5b5a96a688d9df07461b31f83e906
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

open-source-parsers/jsoncpp #1111 · read the original issue
**Is your feature request related to a problem? Please describe.**

I am trying to include your library within my code, but unfortunately I'm not able to build your library using Static linking ( MT/MTd ).



**Describe the solution you'd like**

You could potentially set the policy `CMP0091` to `NEW` in your CMakeLists.txt which could then allow anyone including as third_party your library to pass the variable `CMAKE_MSVC_RUNTIME_LIBRARY` which will take care automatically to add the relative flags to the linker.



**Describe alternatives you've considered**

Maybe another C++ JSON library.



**Additional context**

None.

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]