Skip to content

Curl CMake script uses identifiers reserved by CMake. #7988

Closed

Description

@Boris-Rasin

From here: https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html

CMake reserves identifiers that:
    begin with CMAKE_ (upper-, lower-, or mixed-case)

Following identifiers are declared by curl CMake script (there may be more):

CMAKE_USE_SCHANNEL
CMAKE_USE_SECTRANSP
CMAKE_USE_OPENSSL
CMAKE_USE_MBEDTLS
CMAKE_USE_BEARSSL
CMAKE_USE_NSS
CMAKE_USE_WOLFSSL

I suggest changing these identifiers to use CURL_ prefix instead:

CURL_USE_SCHANNEL
CURL_USE_SECTRANSP
CURL_USE_OPENSSL
CURL_USE_MBEDTLS
CURL_USE_BEARSSL
CURL_USE_NSS
CURL_USE_WOLFSSL

curl/libcurl version

7.80.0

Activity

  1. jzakrzewski commented on Nov 15, 2021

    @jzakrzewski
    Contributor

    I'm all in for the change. Just note that it'll break scripts (if any) that build curl using CMake.

  2. added a commit that references this issue on Nov 22, 2021
    52b8480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions