Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,923
    • Issues 3,923
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #20575
Closed
Open
Created Apr 12, 2020 by Bastien Schatt@bschattContributor

MSVC: impossible to add lib in CMAKE_C_STANDARD_LIBRARIES_INIT

Currently the CMAKE_C_STANDARD_LIBRARIES_INIT is set here https://gitlab.kitware.com/cmake/cmake/-/blob/v3.17.1/Modules/Platform/Windows-MSVC.cmake#L215

I believe the string should be appended (not set) because it prevents us from adding any custom libraries from a toolchain file.

The behavior is similar in ARTOS-GNU-C.cmake and Windows-GNU.cmake. It seems this variable is not set anywhere else.

Edited Apr 13, 2020 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking