Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.12)

Choose a reason for hiding this comment

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

Suggested change
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.12...3.5)
Suggested change
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.12)

Copy link
Author

Choose a reason for hiding this comment

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

I’m confused. The first suggestion seems to change this to a version range, but in the wrong direction (3.12...3.5 instead of 3.5...3.12), and then the second suggestion … changes it back?

If you do have a concrete reason to want to support such old CMake versions, 3.5...3.12 would be a reasonable alternative to 3.12.


if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
Expand Down