Skip to content

Commit

Permalink
Merge pull request #172 from uriparser/cmake-3-5-0
Browse files Browse the repository at this point in the history
Require CMake >=3.5.0
  • Loading branch information
hartwork committed Jul 28, 2023
2 parents e7b606a + 7475048 commit 360fa3c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
cd googletest-release-${GTEST_VERSION}/
# Silence warning "Compatibility with CMake < 2.8.12 will be removed"
find -name CMakeLists.txt -print -exec sed 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.0.2)/' -i {} \;
find -name CMakeLists.txt -print -exec sed 's/cmake_minimum_required.*/cmake_minimum_required(VERSION 3.5.0)/' -i {} \;
cmake \
-DBUILD_SHARED_LIBS=ON \
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
#
cmake_minimum_required(VERSION 3.3)
cmake_minimum_required(VERSION 3.5.0)

project(uriparser
VERSION
Expand Down
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ NOTE: uriparser is looking for help with a few things:

xxxx-xx-xx -- x.x.x

* Changed: Require CMake >=3.5.0 (GitHub #172)
* Added: CMake option URIPARSER_SHARED_LIBS=(ON|OFF) to control,
whether to produce a shared or static library for uriparser
and that alone, falls back to standard BUILD_SHARED_LIBS
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ please check out [https://uriparser.github.io/](https://uriparser.github.io/).
# Example use from an existing CMake project

```cmake
cmake_minimum_required(VERSION 3.3)
cmake_minimum_required(VERSION 3.5.0)
project(hello VERSION 1.0.0)
Expand Down
2 changes: 1 addition & 1 deletion cmake/test_find_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
#
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5.0)

project(test-find-package VERSION 1.0)

Expand Down

0 comments on commit 360fa3c

Please sign in to comment.