You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'CMakeLists.txt' Files need to be updated to avoid these warnings using newer versions of cmake:
$ cmake -Bbuild-cmake
-- The CXX compiler identification is GNU 11.4.0
-- 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
-- IPO / LTO enabled
-- Performing Test flag_no_deprecated
-- Performing Test flag_no_deprecated - Success
-- Performing Test flag_color_diag
-- Performing Test flag_color_diag - Success
-- Looking for ppoll
-- Looking for ppoll - found
-- Looking for fork
-- Looking for fork - found
-- Looking for pipe
-- Looking for pipe - found
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
CMake Warning (dev) at /usr/share/**cmake-3.29**/Modules/FetchContent.cmake:1352 (message):
The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
not set. The policy's OLD behavior will be used. When using a URL
download, the timestamps of extracted files should preferably be that of
the time of extraction, otherwise code that depends on the extracted
contents might not be rebuilt if the URL changes. The OLD behavior
preserves the timestamps from the archive instead, but this is usually not
what you want. Update your project to the NEW behavior or specify the
DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
robustness issue.
Call Stack (most recent call first):
CMakeLists.txt:233 (FetchContent_Declare)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at build-cmake/_deps/googletest-src/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Deprecation Warning at build-cmake/_deps/googletest-src/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at build-cmake/_deps/googletest-src/googletest/CMakeLists.txt:56 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning (dev) at build-cmake/_deps/googletest-src/googletest/cmake/internal_utils.cmake:243 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
build-cmake/_deps/googletest-src/googletest/CMakeLists.txt:91 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonInterp: /usr/bin/python (found version "3.10.12")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Defining GTest::gtest alias to work-around bug in older release.
-- Performing Test flag_maybe_uninit
-- Performing Test flag_maybe_uninit - Success
-- Configuring done (7.0s)
-- Generating done (0.1s)
-- Build files have been written to: /tmp/ninja/build-cmake
cmake_minimum_required(VERSION xx...xx)
Thanks,
The text was updated successfully, but these errors were encountered:
rumas84
changed the title
[Ninja-1.12.0] CMakeLists.txt: xx (cmake_minimum_required): Warning ...!!!
[Ninja-1.1x.0] CMakeLists.txt: xx (cmake_minimum_required): Warning ...!!!
Apr 13, 2024
rumas84
changed the title
[Ninja-1.1x.0] CMakeLists.txt: xx (cmake_minimum_required): Warning ...!!!
[Ninja-1.1x.x] CMakeLists.txt: xx (cmake_minimum_required): Warning ...!!!
Apr 13, 2024
The minimum required version 3.5 warning comes from the fetched Google test. With #2422 it got updated to GTest 1.12.1 which set the minimum CMake version to 3.5. So this warning should be gone on master.
'CMakeLists.txt' Files need to be updated to avoid these warnings using newer versions of cmake:
cmake_minimum_required(VERSION xx...xx)
Thanks,
The text was updated successfully, but these errors were encountered: