CMake: fix usage of cmake_dependent_option
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user