mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-05 13:28:16 +00:00
build: Fix build with system cJSON.
Identified when building on Debian Salsa.
This commit is contained in:
parent
a1b6efd16b
commit
7df96234a2
4
src/external/CMakeLists.txt
vendored
4
src/external/CMakeLists.txt
vendored
|
@ -7,10 +7,10 @@ target_include_directories(xrt-external-openxr INTERFACE ${CMAKE_CURRENT_SOURCE_
|
|||
add_library(xrt-external-glad INTERFACE)
|
||||
target_include_directories(xrt-external-glad INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/glad)
|
||||
|
||||
add_library(xrt-external-cjson INTERFACE)
|
||||
if(BUILD_WITH_SYSTEM_CJSON)
|
||||
add_library(xrt-external-cjson ALIAS cJSON::cJSON)
|
||||
target_link_libraries(xrt-external-cjson INTERFACE cJSON::cJSON)
|
||||
else()
|
||||
add_library(xrt-external-cjson INTERFACE)
|
||||
target_include_directories(xrt-external-cjson INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/cjson)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue