Opened 2 months ago

Last modified 2 months ago

#70703 assigned defect

finite-diff fails to find catch2 on buildbots

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: Cc:
Port: finite-diff

Description

-- Found Threads: TRUE
CMake Warning at tests/CMakeLists.txt:21 (find_package):
  By not providing "Findcatch2.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "catch2", but
  CMake did not find one.

  Could not find a package configuration file provided by "catch2" with any
  of the following names:

    catch2Config.cmake
    catch2-config.cmake

  Add the installation prefix of "catch2" to CMAKE_PREFIX_PATH or set
  "catch2_DIR" to a directory containing one of the above files.  If "catch2"
  provides a separate development package or SDK, be sure it has been
  installed.


CMake Error at tests/CMakeLists.txt:34 (include):
  include could not find requested file:

    Catch


CMake Error at tests/CMakeLists.txt:38 (catch_discover_tests):
  Unknown CMake command "catch_discover_tests".


-- Configuring incomplete, errors occurred!
Command failed:  cd "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_finite-diff/finite-diff/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules;/opt/local/lib/libfmt10/cmake" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules;/opt/local/lib/libfmt10/cmake" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DFINITE_DIFF_BUILD_UNIT_TESTS=ON -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="14.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk" /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_finite-diff/finite-diff/work/finite-diff-1.0.2 

On CI everything worked fine, so presumably letter-case may be at fault.

Change History (1)

comment:1 Changed 2 months ago by ryandesign (Ryan Carsten Schmidt)

Yes, according to catch2's contents shown at https://ports.macports.org/port/catch2/details/ the file is called Catch2Config.cmake, not catch2Config.cmake.

Note: See TracTickets for help on using tickets.