cpm-cmake / CPM.cmake

📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors while running CTest a second time

ClausKlein opened this issue · comments

Errors while running CTest
Output from these tests are in: /Users/clausklein/cmake/TheLartians/CPM.cmake/test/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
bash-5.2$ ctest --rerun-failed --output-on-failure
Test project /Users/clausklein/cmake/TheLartians/CPM.cmake/test/build
    Start 8: /Users/clausklein/cmake/TheLartians/CPM.cmake/test/unit/options.cmake
1/1 Test #8: /Users/clausklein/cmake/TheLartians/CPM.cmake/test/unit/options.cmake ...***Failed    0.36 sec
CMake Warning at /Users/clausklein/cmake/TheLartians/CPM.cmake/cmake/CPM.cmake:76 (message):
  CPM: Your project is using an unstable development version of CPM.cmake.
  Please update to a recent release if possible.  See
  https://github.com/cpm-cmake/CPM.cmake for details.
Call Stack (most recent call first):
  CMakeLists.txt:11 (include)


-- CPM: Adding package Dependency@ (/Users/clausklein/cmake/TheLartians/CPM.cmake/test/unit/local_dependency/dependency)
CMake Deprecation Warning at dependency/CMakeLists.txt:1 (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.


called alternative external method
DEFINE_ALTERNATIVE_FUNCTION: OFF
CMake Error at /Users/clausklein/cmake/TheLartians/CPM.cmake/cmake/testing.cmake:41 (message):
  assertion failed: 'DEFINE_ALTERNATIVE_FUNCTION' is defiend (OFF)
Call Stack (most recent call first):
  CMakeLists.txt:33 (ASSERT_NOT_DEFINED)


-- Configuring incomplete, errors occurred!
CMake Error at /Users/clausklein/cmake/TheLartians/CPM.cmake/cmake/testing.cmake:7 (message):
  assertion failed: '1' != '0'
Call Stack (most recent call first):
  /Users/clausklein/cmake/TheLartians/CPM.cmake/test/unit/options.cmake:19 (assert_equal)




0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.42 sec

The following tests FAILED:
          8 - /Users/clausklein/cmake/TheLartians/CPM.cmake/test/unit/options.cmake (Failed)
Errors while running CTest
bash-5.2$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
bash-5.2$ git log -1
commit 369f1316f67545e6ef115b317802bc7acedf6697 (HEAD -> master, tag: v0.38.7, origin/master, origin/HEAD, claus/master, claus/develop, develop)
Author: Chris Wright <chris@inkyspider.co.uk>
Date:   Thu Nov 30 19:01:03 2023 +0000

    Treat relative paths as relative to parent project's remote (#522)
    
    * Treat relative paths as relative to parent project's remote
    
    * replace unit test case with integration test
    
    * run relative URL test only on supported CMake versions (3.27)
    
    * omit cmake 2.25.x test runner as replaced by 2.27.x
    
    ---------
    
    Co-authored-by: Chris Wright <chris.wright@mqa.co.uk>
    Co-authored-by: Lars Melchior <lars.melchior@gmail.com>
bash-5.2$