CMake: fix usage of cmake_dependent_option

This commit is contained in:
2025-09-10 19:44:17 -04:00
parent 3a852bfb9d
commit 20034513ad
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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) if(ENABLE_LIB_xcbXorg)
pkg_check_modules(XCB REQUIRED xcb) pkg_check_modules(XCB REQUIRED xcb)
+2 -2
View File
@@ -1,6 +1,6 @@
cmake_dependent_option(ENABLE_SENSEAPI_livoxGen1 cmake_dependent_option(ENABLE_SENSEAPI_livoxGen1
"Enable Livox Gen1 LiDAR sense API" OFF "Enable Livox Gen1 LiDAR sense API" ON
"ENABLE_LIB_livoxProto1" ON) "ENABLE_LIB_livoxProto1" OFF)
if(ENABLE_SENSEAPI_livoxGen1) if(ENABLE_SENSEAPI_livoxGen1)
add_library(livoxGen1 SHARED add_library(livoxGen1 SHARED
+1 -1
View File
@@ -1,7 +1,7 @@
# XCB/Xorg Window Attaching SenseAPI backend # XCB/Xorg Window Attaching SenseAPI backend
cmake_dependent_option(ENABLE_SENSEAPI_xcbWindow cmake_dependent_option(ENABLE_SENSEAPI_xcbWindow
"Enable XCB/Xorg Window Attaching SenseAPI backend" ON "Enable XCB/Xorg Window Attaching SenseAPI backend" ON
"ENABLE_LIB_xcbXorg" ON) "ENABLE_LIB_xcbXorg" OFF)
if(ENABLE_SENSEAPI_xcbWindow) if(ENABLE_SENSEAPI_xcbWindow)
add_library(xcbWindow SHARED add_library(xcbWindow SHARED