Closed ad1217 closed 1 year ago
The cmake_minimum_required
call is done in ./CMakeLists.txt
, perhaps you are trying to compile ./src/CmakeLists.txt
directly?
See: https://github.com/aewallin/opencamlib/blob/master/CMakeLists.txt#L1
Err, whoops. That was indeed the issue... Looks like I changed it to build directly from src/
in 2017 for unclear reasons. Thanks!
The call to
check_ipo_supported
, introduced in PR #142, causes CMake 3.25.2 (on Arch Linux) to error out:I'm not very familiar with CMake, but either adding
cmake_policy(SET CMP0069 NEW)
orcmake_minimum_required(VERSION 3.15)
tosrc/CMakeLists.txt
seems to fix this.