From 20034513ad15fcde7407a1ac6f36f472b073174e Mon Sep 17 00:00:00 2001 From: Hayodea Hakol Date: Wed, 10 Sep 2025 19:44:17 -0400 Subject: [PATCH] CMake: fix usage of cmake_dependent_option --- commonLibs/xcbXorg/CMakeLists.txt | 2 +- senseApis/livoxGen1/CMakeLists.txt | 4 ++-- senseApis/xcbWindow/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commonLibs/xcbXorg/CMakeLists.txt b/commonLibs/xcbXorg/CMakeLists.txt index c751d59..b5e8c5a 100644 --- a/commonLibs/xcbXorg/CMakeLists.txt +++ b/commonLibs/xcbXorg/CMakeLists.txt @@ -1,4 +1,4 @@ -option(ENABLE_LIB_xcbXorg "Enable XCB/Xorg Connection Manager backend lib" ON) +option(ENABLE_LIB_xcbXorg "Enable XCB/Xorg Connection Manager backend lib" OFF) if(ENABLE_LIB_xcbXorg) pkg_check_modules(XCB REQUIRED xcb) diff --git a/senseApis/livoxGen1/CMakeLists.txt b/senseApis/livoxGen1/CMakeLists.txt index 7b1763c..7d61fc5 100644 --- a/senseApis/livoxGen1/CMakeLists.txt +++ b/senseApis/livoxGen1/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_dependent_option(ENABLE_SENSEAPI_livoxGen1 - "Enable Livox Gen1 LiDAR sense API" OFF - "ENABLE_LIB_livoxProto1" ON) + "Enable Livox Gen1 LiDAR sense API" ON + "ENABLE_LIB_livoxProto1" OFF) if(ENABLE_SENSEAPI_livoxGen1) add_library(livoxGen1 SHARED diff --git a/senseApis/xcbWindow/CMakeLists.txt b/senseApis/xcbWindow/CMakeLists.txt index ad65536..d58b0ae 100644 --- a/senseApis/xcbWindow/CMakeLists.txt +++ b/senseApis/xcbWindow/CMakeLists.txt @@ -1,7 +1,7 @@ # XCB/Xorg Window Attaching SenseAPI backend cmake_dependent_option(ENABLE_SENSEAPI_xcbWindow "Enable XCB/Xorg Window Attaching SenseAPI backend" ON - "ENABLE_LIB_xcbXorg" ON) + "ENABLE_LIB_xcbXorg" OFF) if(ENABLE_SENSEAPI_xcbWindow) add_library(xcbWindow SHARED