Skip to content

Conversation

@redDwarf03
Copy link

No description provided.

# SPDX-License-Identifier: CC0-1.0

cmake_minimum_required (VERSION 2.8.12)
cmake_minimum_required (VERSION 3.5)
Copy link
Contributor

Choose a reason for hiding this comment

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

this will cause problems on other systems that use e.g. cmake 3.22 (like ubuntu 22.04). How is it that your system is complaining about the minimal version being too old? This is counterintuitive.

Copy link
Author

Choose a reason for hiding this comment

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

if i let 2.8.12, i have this error

 cmake -DRS_WEBUI=ON -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is AppleClang 17.0.0.17000013
-- The CXX compiler identification is AppleClang 17.0.0.17000013
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libz.tbd (found version "1.2.12")
-- Found BZip2: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libbz2.tbd (found version "1.0.8")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found Git: /opt/homebrew/bin/git (found version "2.44.0")
-- libretroshare source found at /Users/SSe/SSe/app/Perso/RetroShare/retroshare-service/../libretroshare/ using it
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenSSL: /opt/homebrew/Cellar/openssl@3/3.4.1/lib/libcrypto.dylib (found version "3.4.1")
-- openpgpsdk source found at /Users/SSe/SSe/app/Perso/RetroShare/libretroshare/../openpgpsdk/ using it
-- BitDHT submodule found at /Users/SSe/SSe/app/Perso/RetroShare/libretroshare/../libbitdht/ using it
CMake Error at /Users/SSe/SSe/app/Perso/RetroShare/libbitdht/CMakeLists.txt:8 (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!

any idea ?

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.

2 participants