From 16380e856048f74205d79d4053ffb3717eaadcbf Mon Sep 17 00:00:00 2001 From: lodriguez Date: Fri, 9 Oct 2026 01:35:47 +0200 Subject: [PATCH] add fallback to link spnav dynamiclly (#14223) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bfb01a657..a208c5e7a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1084,10 +1084,10 @@ endif () find_path(SPNAV_INCLUDE_DIR spnav.h) if (SPNAV_INCLUDE_DIR) - find_library(SPNAV_LIB NAMES libspnav.a) # Force linking libspnav statically + find_library(SPNAV_LIB NAMES libspnav.a spnav) if (SPNAV_LIB) add_definitions(-DHAVE_SPNAV) - message(STATUS "SPNAV library found") + message(STATUS "SPNAV library found: ${SPNAV_LIB}") else() message(STATUS "SPNAV library NOT found, Spacenavd not supported") endif()