Skip to content
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

example: avoid cmake_minimum deprecation warning #184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scivision
Copy link
Contributor

@scivision scivision commented Sep 1, 2023

Apple Silicon in general requires CMake >= 3.19.2, so it's unlikely to be an issue.

This avoids warning with CMake >= 3.27:

 % cmake -Bbuild -G Xcode -DCMAKE_TOOLCHAIN_FILE=../../ios.toolchain.cmake -DPLATFORM=OS64

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

Apple Silicon in general requires CMake >= 3.19.2, so it's
unlikely to be an issue.
@leetal
Copy link
Owner

leetal commented Sep 6, 2023

Seems the enable_language() directives are needed. Moving them (CXX, OBJC) to the project-definition causes issues since the toolchain require explicit language support and the project definition is not propagating to the correct internal directives in CMake..?

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.

None yet

2 participants