Skip to content

Commit eb2b0aa

Browse files
Update cmake_minimum_required to 3.5; support CMake 4.0
CMake 4.0 drops support for CMake <3.5, so minimum versions need to be adjusted for forward compatibility.
1 parent 7fa7aa3 commit eb2b0aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.2)
1+
cmake_minimum_required(VERSION 3.5)
22
project(earcut_hpp LANGUAGES CXX C)
33

44
option(EARCUT_BUILD_TESTS "Build the earcut test program" ON)
@@ -35,7 +35,7 @@ add_library(fixtures OBJECT ${FIXTURE_SOURCE_FILES})
3535
target_compile_options(fixtures PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/Od>)
3636

3737
# In CMake 3.12, use target_link_libraries(fixtures PUBLIC earcut_hpp libtess2).
38-
# Since we support down to CMake 3.2, we need to manually propagate usage requirements of earcut_hpp
38+
# Since we support down to CMake 3.5, we need to manually propagate usage requirements of earcut_hpp
3939
target_include_directories(fixtures PRIVATE "$<TARGET_PROPERTY:earcut_hpp,INTERFACE_INCLUDE_DIRECTORIES>")
4040
target_compile_features(fixtures PRIVATE "$<TARGET_PROPERTY:earcut_hpp,INTERFACE_COMPILE_FEATURES>")
4141

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ If you want to build the test, benchmark and visualization programs instead, fol
8989

9090
Before you continue, make sure to have the following tools and libraries installed:
9191
* git ([Ubuntu](https://help.ubuntu.com/lts/serverguide/git.html)/[Windows/macOS](http://git-scm.com/downloads))
92-
* cmake 3.2+ ([Ubuntu](https://launchpad.net/~george-edison55/+archive/ubuntu/cmake-3.x)/[Windows/macOS](https://cmake.org/download/))
92+
* cmake 3.5+ ([Ubuntu](https://launchpad.net/~george-edison55/+archive/ubuntu/cmake-3.x)/[Windows/macOS](https://cmake.org/download/))
9393
* OpenGL SDK ([Ubuntu](http://packages.ubuntu.com/de/trusty/libgl1-mesa-dev)/[Windows](https://dev.windows.com/en-us/downloads/windows-10-sdk)/[macOS](https://developer.apple.com/opengl/))
9494
* Compiler such as [GCC 4.9+, Clang 3.4+](https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test), [MSVC12+](https://www.visualstudio.com/)
9595

0 commit comments

Comments
 (0)