Skip to content

Unable to select MultiThreaded or MultiThreadedDLL in MSVC environmentΒ #1198

@BestArthur

Description

@BestArthur

Description

Issue: Unable to select MultiThreaded or MultiThreadedDLL in MSVC environment

Description
In the CMakeLists.txt file, when BUILD_SHARED_LIBS is set to FALSE (OFF), the runtime library is forcibly set to MultiThreaded.
Instead of this hardcoded behavior, it would be better to use the CMAKE_MSVC_RUNTIME_LIBRARY option to allow MultiThreaded and MultiThreadedDLL as configurable build options.

Let me know if you need any modifications! πŸš€

Example/How to Reproduce

  1. Create a cpr::Session
  2. Set option ...
  3. Perform the request
  4. See error

Possible Fix

No response

Where did you get it from?

GitHub (branch e.g. master)

Additional Context/Your Environment

  • OS:
  • Version:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions