Skip to content

Solve issue #40 cmake version issue for above 3.5 version#41

Closed
mominfaizan wants to merge 1 commit intovietjtnguyen:masterfrom
mominfaizan:fix/#40-CMAKE-Version-issue
Closed

Solve issue #40 cmake version issue for above 3.5 version#41
mominfaizan wants to merge 1 commit intovietjtnguyen:masterfrom
mominfaizan:fix/#40-CMAKE-Version-issue

Conversation

@mominfaizan
Copy link

This pull request resolves a compatibility issue with CMake 4.0.0. The original CMakeLists.txt specified cmake_minimum_required(VERSION 3.1), which is no longer supported in CMake 4.0+. As a result, configuration would fail with an error regarding outdated compatibility.

Fixes: #40

🛠️ Changes Made
Updated cmake_minimum_required(VERSION 3.1...3.5) to VERSION 3.5 to meet the new minimum requirements introduced in CMake 4.0.0 and also able to run VERSION 3.1 to 3.5. So it will also run on older version.

Ensured that no other parts of the configuration were impacted by this version change.

🧪 Testing
Successfully ran make with CMake 4.0.0.

Verified that the project configures, builds, and installs correctly.

📦 Related
Let me know if you'd like to add a screenshot of the error, mention others, or reference additional issues/branches!

open-4

@vietjtnguyen
Copy link
Owner

Thanks for the PR. Can you rename the branch to conform with existing convention: dev-*, all lower case, ASCII characters/numbers only, and using - as separators.

Also I've tried against CMake 3.25.1 (current version in Debian Bookworm) and don't see any issues so I don't see why not updating the max version to that.

@@ -1,4 +1,4 @@
cmake_minimum_required( VERSION 3.0 )
cmake_minimum_required( VERSION 3.0...3.5)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also maintain formatting conventions with the space prior to trailing closing parenthesis?

@mominfaizan
Copy link
Author

mominfaizan commented Apr 15, 2025 via email

@vietjtnguyen
Copy link
Owner

Closed in favor of #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CMake Error | Compatibility with CMake < 3.5 has been removed from CMake.

2 participants