-
Notifications
You must be signed in to change notification settings - Fork 25
Fix CMake 4+ compatibility #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Ilies CHERGUI <[email protected]>
Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Ilies CHERGUI <[email protected]>
Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Ilies CHERGUI <[email protected]>
Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Ilies CHERGUI <[email protected]>
Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Ilies CHERGUI <[email protected]>
Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Ilies CHERGUI <[email protected]>
Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Ilies CHERGUI <[email protected]>
Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Ilies CHERGUI <[email protected]>
Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Ilies CHERGUI <[email protected]>
8a643b1 to
9818d6d
Compare
| +++ b/CMakeLists.txt | ||
| @@ -1,4 +1,4 @@ | ||
| -cmake_minimum_required(VERSION 3.1) | ||
| +cmake_minimum_required(VERSION 3.5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if its working, perhaps its worth letting upstream have a look at this patch.
| @@ -1,5 +1,5 @@ | ||
| # CMakeLists to build the cnmem library. | ||
| -cmake_minimum_required(VERSION 2.8.8) | ||
| +cmake_minimum_required(VERSION 3.5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream seems to be dormant but it will be good to create a PR for it there as well.
| SRC_URI = " \ | ||
| git://github.com/dmlc/dlpack.git;protocol=https;branch=main;tag=v${PV} \ | ||
| file://0001-update-dlpack-project-version.patch \ | ||
| file://0002-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets backport dmlc/dlpack@5c210da from upstream instead.
| SRC_URI = " \ | ||
| git://github.com/jbeder/yaml-cpp.git;branch=master;protocol=https;tag=yaml-cpp-${PV} \ | ||
| file://0001-Updates-for-OE-cross-builds.patch \ | ||
| file://0002-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an upstream PR - jbeder/yaml-cpp#1358
bring that in here.
| SRC_URI = " \ | ||
| git://github.com/dcleblanc/SafeInt.git;protocol=https;nobranch=1;tag=${PV} \ | ||
| file://0001-Updates-for-OE-cross-builds.patch \ | ||
| file://0002-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backport - dcleblanc/SafeInt#39 this is already merged upstream
| +++ b/CMakeLists.txt | ||
| @@ -1,4 +1,4 @@ | ||
| -cmake_minimum_required (VERSION 2.8.12) | ||
| +cmake_minimum_required (VERSION 3.5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to send a PR upstream for this
| file://0004-Use-native-protobuf-compiler.patch \ | ||
| file://0005-Disable-various-warnings.patch \ | ||
| file://0006-Fixups-for-cross-building-in-OE.patch \ | ||
| file://0007-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets backport - pytorch/pytorch@c2beead
| SRC_URI = "\ | ||
| git://github.com/triton-inference-server/common.git;protocol=https;branch=r25.05 \ | ||
| file://0001-Build-fixups.patch \ | ||
| file://0002-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backporting - triton-inference-server/common@2e41435 would be nicer.
Those commits fixes the following issue: