Install the official readme installation error
Solutions to errors encountered during installation:
Lidar_align compiles and installs pits - RobotLaw's Blog - CSDN Blog
Modify line 17 of the CMakelist.txt file:
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_SOURCE_DIR})
Change it to the following:
list(APPEND CMAKE_FIND_ROOT_PATH ${CMAKE_SOURCE_DIR}/${PROJECT_NAME})
Another solution is:
Move the "\lidar_align\FindNLOPT.cmake" file to the "\src" folder in the working path, and compile it again.