[cpp-rest-sdk] fix finding of the crypto libraries (#21219)

* [cpp-rest-sdk] fix finding of the crypto libraries

This fixes finding of the crypto for cpprest sdk via find_library. It also bumps the minimum CMake version to 3.10 to avoid deprecation warnings

* docs: add myself as a technical committee member
This commit is contained in:
Amin Ya 2025-05-06 23:30:18 -07:00 committed by GitHub
parent 4b2abdf48d
commit f5b8fd6f5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 58 additions and 34 deletions

4
.github/CODEOWNERS vendored
View File

@ -28,3 +28,7 @@ modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @martindelille
samples/client/petstore/cpp-qt/**/* @martindelille samples/client/petstore/cpp-qt/**/* @martindelille
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @muttleyxd modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @muttleyxd
samples/client/petstore/cpp-qt/**/* @muttleyxd samples/client/petstore/cpp-qt/**/* @muttleyxd
# cpp-rest-client technical committee
modules/openapi-generator/src/main/resources/cpp-rest-client/**/* @aminya
samples/client/petstore/cpp-restsdk/**/* @aminya

View File

@ -97,32 +97,48 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
## Table of contents ## Table of contents
- [OpenAPI Generator](#openapi-generator) - [Sponsors](#sponsors)
- [Overview](#overview) - [Thank you to our bronze sponsors!](#thank-you-to-our-bronze-sponsors)
- [Table of Contents](#table-of-contents) - [Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS, Checkly for sponsoring the API monitoring and Gradle for sponsoring Develocity](#thank-you-godaddy-for-sponsoring-the-domain-names-linode-for-sponsoring-the-vps-checkly-for-sponsoring-the-api-monitoring-and-gradle-for-sponsoring-develocity)
- [1 - Installation](#1---installation) - [Overview](#overview)
- [1.1 - Compatibility](#11---compatibility) - [Table of contents](#table-of-contents)
- [1.2 - Artifacts on Maven Central](#12---artifacts-on-maven-central) - [1 - Installation](#1---installation)
- [1.3 - Download JAR](#13---download-jar) - [1.1 - Compatibility](#11---compatibility)
- [1.4 - Build Projects](#14---build-projects) - [1.2 - Artifacts on Maven Central](#12---artifacts-on-maven-central)
- [1.5 - Homebrew](#15---homebrew) - [1.3 - Download JAR](#13---download-jar)
- [1.6 - Docker](#16---docker) - [Launcher Script](#launcher-script)
- [1.7 - NPM](#17---npm) - [1.4 - Build Projects](#14---build-projects)
- [1.8 - pip](#18---pip) - [Nix users](#nix-users)
- [2 - Getting Started](#2---getting-started) - [1.5 - Homebrew](#15---homebrew)
- [3 - Usage](#3---usage) - [1.6 - Docker](#16---docker)
- [3.1 - Customization](#31---customization) - [Public Pre-built Docker images](#public-pre-built-docker-images)
- [3.2 - Workflow Integration](#32---workflow-integration-maven-gradle-github-cicd) - [OpenAPI Generator CLI Docker Image](#openapi-generator-cli-docker-image)
- [3.3 - Online Generators](#33---online-openapi-generator) - [OpenAPI Generator Online Docker Image](#openapi-generator-online-docker-image)
- [3.4 - License Information on Generated Code](#34---license-information-on-generated-code) - [Development in docker](#development-in-docker)
- [3.5 - IDE Integration](#35---ide-integration) - [Troubleshooting](#troubleshooting)
- [4 - Companies/Projects using OpenAPI Generator](#4---companiesprojects-using-openapi-generator) - [Run Docker in Vagrant](#run-docker-in-vagrant)
- [5 - Presentations/Videos/Tutorials/Books](#5---presentationsvideostutorialsbooks) - [1.7 - NPM](#17---npm)
- [6 - About Us](#6---about-us) - [1.8 - pip](#18---pip)
- [6.1 - OpenAPI Generator Core Team](#61---openapi-generator-core-team) - [2 - Getting Started](#2---getting-started)
- [6.2 - OpenAPI Generator Technical Committee](#62---openapi-generator-technical-committee) - [3 - Usage](#3---usage)
- [6.3 - History of OpenAPI Generator](#63---history-of-openapi-generator) - [To generate a sample client library](#to-generate-a-sample-client-library)
- [7 - License](#7---license) - [3.1 - Customization](#31---customization)
- [3.2 - Workflow Integration (Maven, Gradle, Github, CI/CD)](#32---workflow-integration-maven-gradle-github-cicd)
- [3.3 - Online OpenAPI generator](#33---online-openapi-generator)
- [3.4 - License information on Generated Code](#34---license-information-on-generated-code)
- [3.5 - IDE Integration](#35---ide-integration)
- [4 - Companies/Projects using OpenAPI Generator](#4---companiesprojects-using-openapi-generator)
- [5 - Presentations/Videos/Tutorials/Books](#5---presentationsvideostutorialsbooks)
- [6 - About Us](#6---about-us)
- [6.1 - OpenAPI Generator Core Team](#61---openapi-generator-core-team)
- [Core Team Members](#core-team-members)
- [Template Creator](#template-creator)
- [How to join the core team](#how-to-join-the-core-team)
- [6.2 - OpenAPI Generator Technical Committee](#62---openapi-generator-technical-committee)
- [Members of Technical Committee](#members-of-technical-committee)
- [6.3 - History of OpenAPI Generator](#63---history-of-openapi-generator)
- [Founding Members (alphabetical order):](#founding-members-alphabetical-order)
- [7 - License](#7---license)
## [1 - Installation](#table-of-contents) ## [1 - Installation](#table-of-contents)
@ -1007,7 +1023,7 @@ Here is a list of template creators:
* Apex: @asnelling * Apex: @asnelling
* Bash: @bkryza * Bash: @bkryza
* C: @PowerOfCreation @zhemant [:heart:](https://www.patreon.com/zhemant) * C: @PowerOfCreation @zhemant [:heart:](https://www.patreon.com/zhemant)
* C++ REST: @Danielku15 * C++ REST: @Danielku15, @aminya
* C++ Tiny: @AndersSpringborg @kaareHH @michelealbano @mkakbas * C++ Tiny: @AndersSpringborg @kaareHH @michelealbano @mkakbas
* C++ UE4: @Kahncode * C++ UE4: @Kahncode
* C# (.NET 2.0): @who * C# (.NET 2.0): @who
@ -1219,7 +1235,7 @@ If you want to join the committee, please kindly apply by sending an email to te
| Apex | | | Apex | |
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) | | Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
| C | @zhemant (2018/11) @ityuhui (2019/12) @michelealbano (2020/03) @eafer (2024/12) | | C | @zhemant (2018/11) @ityuhui (2019/12) @michelealbano (2020/03) @eafer (2024/12) |
| C++ | @ravinikam (2017/07) @stkrwork (2017/07) @etherealjoy (2018/02) @martindelille (2018/03) @muttleyxd (2019/08) | | C++ | @ravinikam (2017/07) @stkrwork (2017/07) @etherealjoy (2018/02) @martindelille (2018/03) @muttleyxd (2019/08) @aminya (2025/05) |
| C# | @mandrean (2017/08) @shibayan (2020/02) @Blackclaws (2021/03) @lucamazzanti (2021/05) @iBicha (2023/07) | | C# | @mandrean (2017/08) @shibayan (2020/02) @Blackclaws (2021/03) @lucamazzanti (2021/05) @iBicha (2023/07) |
| Clojure | | | Clojure | |
| Crystal | @cyangle (2021/01) | | Crystal | @cyangle (2021/01) |

View File

@ -8,7 +8,7 @@
# #
# NOTE: Auto generated by OpenAPI Generator (https://openapi-generator.tech). # NOTE: Auto generated by OpenAPI Generator (https://openapi-generator.tech).
cmake_minimum_required (VERSION 3.5) cmake_minimum_required (VERSION 3.10)
project({{{packageName}}} CXX) project({{{packageName}}} CXX)
@ -63,14 +63,16 @@ if (UNIX)
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest) target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest)
else() else()
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest crypto) find_library(CRYPTO_LIB crypto REQUIRED)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest ${CRYPTO_LIB})
endif() endif()
else() else()
message(STATUS "Building client library for Windows") message(STATUS "Building client library for Windows")
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest) target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest)
else() else()
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest bcrypt) find_library(BCRYPT_LIB bcrypt REQUIRED)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest ${BCRYPT_LIB})
endif() endif()
endif() endif()

View File

@ -8,7 +8,7 @@
# #
# NOTE: Auto generated by OpenAPI Generator (https://openapi-generator.tech). # NOTE: Auto generated by OpenAPI Generator (https://openapi-generator.tech).
cmake_minimum_required (VERSION 3.5) cmake_minimum_required (VERSION 3.10)
project(CppRestPetstoreClient CXX) project(CppRestPetstoreClient CXX)
@ -63,14 +63,16 @@ if (UNIX)
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest) target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest)
else() else()
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest crypto) find_library(CRYPTO_LIB crypto REQUIRED)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest ${CRYPTO_LIB})
endif() endif()
else() else()
message(STATUS "Building client library for Windows") message(STATUS "Building client library for Windows")
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest) target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest)
else() else()
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest bcrypt) find_library(BCRYPT_LIB bcrypt REQUIRED)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::headers cpprestsdk::cpprest ${BCRYPT_LIB})
endif() endif()
endif() endif()