Skip to content

Error in CMakeLists.txt when Building on Windows with Visual Studio 2022-v140-Base Configuration  #274

Description

@jc2018

When I build my project on CentOS 7.9 (using gcc version 4.8.5), it builds successfully.
However, when attempting to build the project on Windows with the following configuration:

{
    "name": "VS2022-v140-Base",
    "inherits": "base",
    "generator": "Visual Studio 17 2022",
    "architecture": "x64",
    "toolset": "v140"
}

I encountered an error in the CMakeLists.txt file. The specific error message is:

  CMake Error at winbuild/_deps/toml11-src/src/CMakeLists.txt:140 (target_compile_definitions):
  target_compile_definitions may only set INTERFACE properties on INTERFACE

I believe there are issues in the CMakeLists.txt file that need to be addressed for successful building on Windows with the specified configuration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions