MacOS: cmake warning, make error

Issue #255 new
Jan Steinman created an issue

On MacOS 10.15.7, cmake gives this warning:

CMake Warning (dev) at /usr/local/Cellar/cmake/3.23.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args`
  (MACINTEGRATION) does not match the name of the calling package
  (MacIntegration).  This can lead to problems in calling code that expects
  `find_package` result variables (e.g., `_FOUND`) to follow a certain
  pattern.
Call Stack (most recent call first):
  cmake/modules/FindMacIntegration.cmake:28 (find_package_handle_standard_args)
  rtgui/CMakeLists.txt:176 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

As this was just a warning, I proceeded with make, and it stopped with the following error:

[  0%] Creating AboutThisBuild.txt and other version-dependent files
[  0%] Built target UpdateInfo
[  1%] Building CXX object rtengine/CMakeFiles/rtengine.dir/badpixels.cc.o
clang: error: invalid version number in '-mmacosx-version-min='
make[2]: *** [rtengine/CMakeFiles/rtengine.dir/badpixels.cc.o] Error 1
make[1]: *** [rtengine/CMakeFiles/rtengine.dir/all] Error 2
make: *** [all] Error 2

I grepped around a bit, but I don’t know enough about the code to track this down.

Comments (0)

  1. Log in to comment