Skip to content

Commit 5c62200

Browse files
Mengna-LiMengna-Li
andauthored
[freeglut] Fix build with CMake4.0 (microsoft#44495)
Co-authored-by: Mengna-Li <v-limengna@microsoft.com>
1 parent 11d10a6 commit 5c62200

5 files changed

Lines changed: 18 additions & 1 deletion

File tree

ports/freeglut/cmake-version.patch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 9a5fb2b..a9ddfea 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -1,4 +1,4 @@
6+
-CMAKE_MINIMUM_REQUIRED(VERSION 3.1 FATAL_ERROR)
7+
+CMAKE_MINIMUM_REQUIRED(VERSION 3.1...3.5 FATAL_ERROR)
8+
PROJECT(freeglut LANGUAGES C)
9+
10+
if (POLICY CMP0072)

ports/freeglut/portfile.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ vcpkg_from_github(
99
x11-dependencies-export.patch
1010
fix-debug-macro.patch
1111
windows-output-name.patch
12+
cmake-version.patch
1213
)
1314

1415
if(VCPKG_TARGET_IS_OSX)

ports/freeglut/vcpkg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "freeglut",
33
"version": "3.6.0",
4+
"port-version": 1,
45
"description": "A free OpenGL utility toolkit, the open-sourced alternative to the GLUT library.",
56
"homepage": "https://sourceforge.net/projects/freeglut/",
67
"license": null,

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2926,7 +2926,7 @@
29262926
},
29272927
"freeglut": {
29282928
"baseline": "3.6.0",
2929-
"port-version": 0
2929+
"port-version": 1
29302930
},
29312931
"freeimage": {
29322932
"baseline": "3.18.0",

versions/f-/freeglut.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "2b2ff4479793417da25f0324620f2ce3373de98b",
5+
"version": "3.6.0",
6+
"port-version": 1
7+
},
38
{
49
"git-tree": "501dfdaa34842155768b87802ae16c0d99baa820",
510
"version": "3.6.0",

0 commit comments

Comments
 (0)