Failed to build on FreeBSD
$ cmake -S . -B build
CMake Deprecation Warning at 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.
-- The CXX compiler identification is Clang 18.1.5
-- 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
CMake Deprecation Warning at cmake/CMakeUtils.cmake: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.
Call Stack (most recent call first):
CMakeLists.txt:6 (include)
CMake Deprecation Warning at cmake/CMakeCompiler.cmake: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.
Call Stack (most recent call first):
CMakeLists.txt:7 (include)
CMake Deprecation Warning at cmake/CMakePlatforms.cmake: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.
Call Stack (most recent call first):
CMakeLists.txt:8 (include)
CMake Error at cmake/CMakePlatforms.cmake:28 (message):
Unknown platform FreeBSD!
Call Stack (most recent call first):
CMakeLists.txt:8 (include)
-- Configuring incomplete, errors occurred!
Hello,
Thank you for reporting this.
In CMakePlatforms.cmake, can you comment out this line?
message(FATAL_ERROR "Unknown platform ${CMAKE_SYSTEM_NAME}!")
There's nothing specific about RTM that should prevent it from running on FreeBSD to my knowledge but I don't have access to a box that runs it to validate.
Cheers, Nicholas
Commenting out that line did the trick. Thank you.
If you don't mind, I'll keep this ticket open for now to make sure I don't forget to make a fix for this in the next release. I'll make sure we handle more exotic platforms more gracefully, or at least ones I can't test locally with.
Thank you for reporting this! Cheers