Skip to content

Commit

Permalink
[C] added curl version check in CMakeList.txt (#1248)
Browse files Browse the repository at this point in the history
* added curl version check in CMakeList.txt

* Updated README for latest curl version
  • Loading branch information
zhemant authored and wing328 committed Oct 16, 2018
1 parent 5780968 commit 8bd7416
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if(VALGRIND)
set(VALGRIND_LIST "")
endif()

find_package(CURL REQUIRED)
find_package(CURL 7.61.1 REQUIRED)
if(CURL_FOUND)
include_directories(${CURL_INCLUDE_DIR})
set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} ${CURL_LIBRARIES} )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
{{/infoUrl}}

## Installation
You'll need the `curl 7.61` package in order to build the API. To have code formatted nicely you also need to have uncrustify version 0.67.
You'll need the `curl 7.61.1` package in order to build the API. To have code formatted nicely you also need to have uncrustify version 0.67.

### Prerequisites
Install the `curl 7.61` package with the following command on Linux.
Install the `curl 7.61.1` package with the following command on Linux.
```bash
sudo apt remove curl
wget http://curl.haxx.se/download/curl-7.60.0.tar.gz
tar -xvf curl-7.61.0.tar.gz
cd curl-7.61.0/
wget http://curl.haxx.se/download/curl-7.61.1.tar.gz
tar -xvf curl-7.61.1.tar.gz
cd curl-7.61.1/
./configure
make
sudo make install
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if(VALGRIND)
set(VALGRIND_LIST "")
endif()

find_package(CURL REQUIRED)
find_package(CURL 7.61.1 REQUIRED)
if(CURL_FOUND)
include_directories(${CURL_INCLUDE_DIR})
set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} ${CURL_LIBRARIES} )
Expand Down
10 changes: 5 additions & 5 deletions samples/client/petstore/c/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat
- Build package: org.openapitools.codegen.languages.CLibcurlClientCodegen

## Installation
You'll need the `curl 7.61` package in order to build the API. To have code formatted nicely you also need to have uncrustify version 0.67.
You'll need the `curl 7.61.1` package in order to build the API. To have code formatted nicely you also need to have uncrustify version 0.67.

### Prerequisites
Install the `curl 7.61` package with the following command on Linux.
Install the `curl 7.61.1` package with the following command on Linux.
```bash
sudo apt remove curl
wget http://curl.haxx.se/download/curl-7.60.0.tar.gz
tar -xvf curl-7.61.0.tar.gz
cd curl-7.61.0/
wget http://curl.haxx.se/download/curl-7.61.1.tar.gz
tar -xvf curl-7.61.1.tar.gz
cd curl-7.61.1/
./configure
make
sudo make install
Expand Down

0 comments on commit 8bd7416

Please sign in to comment.