owl icon indicating copy to clipboard operation
owl copied to clipboard

Cmake error on Arch

Open k1lyabenzo opened this issue 7 months ago • 5 comments

k1lya@archlinux ~/o/build (master)> cmake .. CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake.

Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier.

CMake Error at daemon/CMakeLists.txt:22 (find_path): Could not find ev_INCLUDE using the following files: ev.h

-- Configuring incomplete, errors occurred!

k1lyabenzo avatar Jun 10 '25 10:06 k1lyabenzo

the googletest submodule is broken with the latest version of cmake and gcc, while the gcc issue seems to persist with different projects using googletest the cmake one is simply because cmake 4 completely depracated files that declare themselves as cmake < 3.5.

JonPC4 avatar Jul 10 '25 21:07 JonPC4

Do you know if this will be addressed any time soon? I haven't found anything in the issue tracker for googletest or cmake about this.

corigne avatar Aug 21 '25 19:08 corigne

you can fix googletest manually within like 4 lines of code if you know how to use c.

Xyndra avatar Aug 23 '25 14:08 Xyndra

you can fix googletest manually within like 4 lines of code if you know how to use c.

Thank you for this information, but would you please consider including information/documentation about the workaround if you are already familiar and it is only 4loc?

Additionally, while I appreciate that there is a workaround, the build for this package has been broken for a while now based on the timing of the original poster and the comments on the AUR.

corigne avatar Aug 23 '25 15:08 corigne

Yeah the cmake thing is would be hard to fix, but if you use an older version of cmake then the gcc issues are just adding an include and setting some variables that are undefined to 0 or false

Xyndra avatar Aug 23 '25 15:08 Xyndra