Skip to content

Configuration Command Includes Unremovable Options #1639

@ChrisThrasher

Description

@ChrisThrasher

Brief Issue Summary

It is not possible to not specify a CMAKE_BUILD_TYPE. More generally, CMake Tools appends many options to the cmake invocation that cannot be removed.

Expected:

Allow configuration commands as simple as cmake .. from the build/ directory.

Apparent Behavior:

Configuration commands include many more flags and typically look something like

/usr/local/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -H/Users/Thrasher/Projects/timecard -B/Users/Thrasher/Projects/timecard/build -G "Unix Makefiles"

without any way to remove these options and flags.

This becomes a problem on projects that require that users do not specify CMAKE_BUILD_TYPE.

Platform and Versions

  • Operating System: macOS 10.15.7
  • CMake Version: 3.17.3
  • VSCode Version: 1.52.1
  • CMake Tools Extension Version: v1.5.3
  • Compiler/Toolchain: Apple Clang version 12.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: configureenhancementan enhancement to the product that is either not present or an improvement to an existing featurein progressactively being working on

    Type

    No type

    Projects

    Status

    Completed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions