Skip to content

Commit ee2f684

Browse files
RahulHereRahulHere
authored andcommitted
Fix CMake CMP0048 policy error for VERSION in project()
Add cmake_policy(SET CMP0048 NEW) to all CMakeLists.txt files that use VERSION in the project() command to fix the build error: "VERSION not allowed unless CMP0048 is set to NEW" Fixed files: - src/auth/CMakeLists.txt - docker/windows-x64/CMakeLists.txt - docker/windows-x64/CMakeLists-windows.txt - docker/windows-x64/CMakeLists-real.txt
1 parent c7467aa commit ee2f684

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

docker/windows-x64/CMakeLists-real.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
cmake_minimum_required(VERSION 3.16)
2+
3+
# Allow VERSION in project() command
4+
cmake_policy(SET CMP0048 NEW)
5+
26
project(gopher-mcp-auth VERSION 0.1.0 LANGUAGES CXX)
37

48
# Set C++ standard to C++11 for maximum compatibility

docker/windows-x64/CMakeLists-windows.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
cmake_minimum_required(VERSION 3.16)
2+
3+
# Allow VERSION in project() command
4+
cmake_policy(SET CMP0048 NEW)
5+
26
project(gopher-mcp-auth VERSION 0.1.0 LANGUAGES CXX)
37

48
# Set C++ standard to C++11 for maximum compatibility

docker/windows-x64/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
cmake_minimum_required(VERSION 3.16)
2+
3+
# Allow VERSION in project() command
4+
cmake_policy(SET CMP0048 NEW)
5+
26
project(gopher-mcp-auth VERSION 0.1.0 LANGUAGES CXX)
37

48
# Set C++ standard to C++11 for maximum compatibility

src/auth/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
cmake_minimum_required(VERSION 3.16)
2+
3+
# Allow VERSION in project() command
4+
cmake_policy(SET CMP0048 NEW)
5+
26
project(gopher-mcp-auth VERSION 0.1.0 LANGUAGES CXX)
37

48
# Set C++ standard to C++11 for maximum compatibility

0 commit comments

Comments
 (0)