mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +00:00
cmake: Fix linux builds with vcpkg.
This commit is contained in:
parent
a860a7f40e
commit
0b3ef8f679
|
@ -37,6 +37,7 @@ include(FindPackageHandleStandardArgs)
|
|||
# Check for CMake config first.
|
||||
find_package(cJSON QUIET CONFIG)
|
||||
if(cJSON_FOUND AND TARGET cjson)
|
||||
set_target_properties(cjson PROPERTIES IMPORTED_GLOBAL TRUE)
|
||||
# Found config, let's prefer it.
|
||||
find_package_handle_standard_args(cJSON CONFIG_MODE)
|
||||
set(CJSON_LIBRARY cjson)
|
||||
|
|
Loading…
Reference in a new issue