ZikangYuan / sr_lio

[IROS 2024] A LiDAR-inertial odometry (LIO) package that can adjust the execution frequency beyond the sweep frequency
GNU General Public License v2.0
467 stars 64 forks source link

CMake Error---- include could not find load file: FetchContent #3

Closed Lifapin closed 1 year ago

Lifapin commented 1 year ago

Hello, CMake Error. How can I solve it?

CMake Error at sr_lio/CMakeLists.txt:19 (include): include could not find load file:

FetchContent

CMake Error at sr_lio/CMakeLists.txt:21 (FetchContent_Declare): Unknown CMake command "FetchContent_Declare".

-- Configuring incomplete, errors occurred! See also "/home/jason/SR-LIO/build/CMakeFiles/CMakeOutput.log". See also "/home/jason/SR-LIO/build/CMakeFiles/CMakeError.log". Makefile:1496: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed

Lifapin commented 1 year ago

Thank you for everything ! After I update cmake3.18 and set CMakeLists After the set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} - std=c++14 - O3") in txt, it can be compiled normally.

ZikangYuan commented 1 year ago

I'm glad your problem has been solved.