mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
431d3810aa
* [openxr-loader] Update to 1.0.20 * [openxr-loader] Fix manifest formatting * [openxr-loader] Update version files * [openxr-loader] Add quotes to absolute paths * [openxr-loader] Update version files Co-authored-by: Rémy Tassoux <rt2@rasterizedworld.com>
31 lines
991 B
Diff
31 lines
991 B
Diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index c75b145..386494c 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -89,7 +89,7 @@ if(NOT VULKAN_INCOMPATIBLE)
|
|
endif()
|
|
|
|
find_package(Threads REQUIRED)
|
|
-find_package(JsonCpp)
|
|
+find_package(jsoncpp CONFIG REQUIRED)
|
|
|
|
### All options defined here
|
|
option(BUILD_LOADER "Build loader" ON)
|
|
diff --git a/src/loader/CMakeLists.txt b/src/loader/CMakeLists.txt
|
|
index 6a88cf4..0821a3d 100644
|
|
--- a/src/loader/CMakeLists.txt
|
|
+++ b/src/loader/CMakeLists.txt
|
|
@@ -68,7 +68,11 @@ add_library(openxr_loader ${LIBRARY_TYPE}
|
|
${openxr_loader_RESOURCE_FILE}
|
|
)
|
|
if(BUILD_WITH_SYSTEM_JSONCPP)
|
|
- target_link_libraries(openxr_loader PRIVATE JsonCpp::JsonCpp)
|
|
+ if(BUILD_SHARED_LIBS)
|
|
+ target_link_libraries(openxr_loader PRIVATE jsoncpp_lib)
|
|
+ else()
|
|
+ target_link_libraries(openxr_loader PRIVATE jsoncpp_static)
|
|
+ endif()
|
|
else()
|
|
target_sources(openxr_loader
|
|
PRIVATE
|