Installed CMAKE 4.1.0
macos ventura (arm64).
After running cmake . see following error:
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.
with -DCMAKE_POLICY_VERSION_MINIMUM=3.5 flag it shows:
CMake Error at /opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:227 (message):
Could NOT find JNI (missing: Development)
Call Stack (most recent call first):
/opt/homebrew/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:591 (_FPHSA_FAILURE_MESSAGE)
/opt/homebrew/share/cmake/Modules/FindJNI.cmake:685 (find_package_handle_standard_args)
c/CMakeLists.txt:145 (find_package)
Please suggest how to handle these errors.
Installed CMAKE 4.1.0
macos ventura (arm64).
After running
cmake .see following error:with -DCMAKE_POLICY_VERSION_MINIMUM=3.5 flag it shows:
Please suggest how to handle these errors.