vsergeev/c-periphery

Unknown CMake command "check_source_compiles" on Debian Bullseye

Opened this issue · 0 comments

Hi all,

I'm trying to build this source on a debian bullseye machine without success.
I'm facing the following CMake issue:

CMake Error at src/c-periphery/CMakeLists.txt:12 (check_source_compiles): Unknown CMake command "check_source_compiles".

If I'm not mistaken, this command was only introduced in CMake version 3.19, where Debian bullseye ships with 3.18.4 by default.
Any suggestions on how to go about this? (preferrably without utilizing bullseye-backports version of CMake?)

Thank in advance!
Thierry
Also, the cmake_minimum_required version is currently set at 2.6, which should be upped I think?