Repository: conan-io/conan-center-index

Issue:
openvr: Bump deps and upgrade for conan v2
Specify library name and version:  **lib/1.0**

<!-- This is also a good place to share with all of us **why you are submitting this PR** (specially if it is a new addition to ConanCenter): is it a dependency of other libraries you want to package? Are you the author of the library? Thanks! -->


---

- [ ] I've read the [contributing guidelines](https://github.com/conan-io/conan-center-index/blob/master/CONTRIBUTING.md).
- [ ] I've used a [recent](https://github.com/conan-io/conan/releases/latest) Conan client version close to the [currently deployed](https://github.com/conan-io/conan-center-index/blob/master/.c3i/config_v1.yml#L6).
- [ ] I've tried at least one configuration locally with the [conan-center hook](https://github.com/conan-io/hooks.git) activated.



Discussion:
### Conan v1 pipeline :x:

Failure in build 2 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

 * **openvr/1.16.8@:**
   Didn't run or was cancelled before finishing

 * **openvr/1.12.5@:**
   Didn't run or was cancelled before finishing

 * **openvr/1.14.15@:**
   CI failed to create some packages ([All logs](https://c3i.jfrog.io/c3i/misc/summary.html?json=https://c3i.jfrog.io/c3i/misc/logs/pr/16913/2-configs/windows-visual_studio/openvr/1.14.15//summary.json))
   
   <details><summary>Logs for packageID <code>1a20920dcfefa7207cb003c54b068ecbd2721ddf</code>:</summary>
   
   ```
   [settings]
   arch=x86_64
   build_type=Release
   compiler=Visual Studio
   compiler.runtime=MD
   compiler.version=15
   os=Windows
   [options]
   openvr:shared=True
   ```
   
   ```
   [...]
   -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Conan: called by CMake conan helper
   -- Conan: Adjusting output directories
   -- Conan: Using cmake targets configuration
   -- Library openvr_api64 found C:/J/w/prod/BuildSingleReference@3/.conan/data/openvr/1.14.15/_/_/package/1a20920dcfefa7207cb003c54b068ecbd2721ddf/lib/openvr_api64.lib
   -- Library jsoncpp found C:/J/w/prod/BuildSingleReference@3/.conan/data/jsoncpp/1.9.5/_/_/package/6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7/lib/jsoncpp.lib
   -- Conan: Adjusting default RPATHs Conan policies
   -- Conan: Adjusting language standard
   -- Library openvr_api64 found C:/J/w/prod/BuildSingleReference@3/.conan/data/openvr/1.14.15/_/_/package/1a20920dcfefa7207cb003c54b068ecbd2721ddf/lib/openvr_api64.lib
   -- Found: C:/J/w/prod/BuildSingleReference@3/.conan/data/openvr/1.14.15/_/_/package/1a20920dcfefa7207cb003c54b068ecbd2721ddf/lib/openvr_api64.lib
   -- Library jsoncpp found C:/J/w/prod/BuildSingleReference@3/.conan/data/jsoncpp/1.9.5/_/_/package/6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7/lib/jsoncpp.lib
   -- Found: C:/J/w/prod/BuildSingleReference@3/.conan/data/jsoncpp/1.9.5/_/_/package/6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7/lib/jsoncpp.lib
   -- Configuring done
   -- Generating done
   -- Build files have been written to: C:/J/w/prod/BuildSingleReference@3/cci-ae2d9d04/recipes/openvr/all/test_v1_package/build/d5e3afc27660ae15b9e5fd0e24cdf6923ccbf501
   
   ----Running------
   > cmake --build C:\J\w\prod\BuildSingleReference@3\cci-ae2d9d04\recipes\openvr\all\test_v1_package\build\d5e3afc27660ae15b9e5fd0e24cdf6923ccbf501 --config Release -- /m:8 /verbosity:minimal
   -----------------
   Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
   Copyright (C) Microsoft Corporation. All rights reserved.
   
     Checking Build System
     Building Custom Rule C:/J/w/prod/BuildSingleReference@3/cci-ae2d9d04/recipes/openvr/all/test_package/CMakeLists.txt
     test_package.cpp
     test_package.vcxproj -> C:\J\w\prod\BuildSingleReference@3\cci-ae2d9d04\recipes\openvr\all\test_v1_package\build\d5e3afc27660ae15b9e5fd0e24cdf6923ccbf501\bin\test_package.exe
     Building Custom Rule C:/J/w/prod/BuildSingleReference@3/cci-ae2d9d04/recipes/openvr/all/test_v1_package/CMakeLists.txt
   openvr/1.14.15 (test package): Running test()
   
   ----Running------
   > bin\test_package
   -----------------
   CMake Warning:
     Manually-specified variables were not used by the project:
   
       CMAKE_EXPORT_NO_PACKAGE_REGISTRY
       CMAKE_INSTALL_BINDIR
       CMAKE_INSTALL_DATAROOTDIR
       CMAKE_INSTALL_INCLUDEDIR
       CMAKE_INSTALL_LIBDIR
       CMAKE_INSTALL_LIBEXECDIR
       CMAKE_INSTALL_OLDINCLUDEDIR
       CMAKE_INSTALL_SBINDIR
   
   
   ERROR: openvr/1.14.15 (test package): Error in test() method, line 19
   	self.run(bin_path, run_environment=True)
   	ConanException: Error 3221225781 while executing bin\test_package
   ```
   
   </details>

---

<sup>**Note:** To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.</sup>

----------

### Conan v2 pipeline (informative, not required for merge) :x:

> **Note**: Conan v2 builds are informative and they are not required for the PR to be merged.

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

<details>

<summary> See details: </summary>

Failure in build 2 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

 * **openvr/1.12.5@:**
   CI failed to create some packages ([All logs](https://c3i.jfrog.io/c3i/misc-v2/summary.html?json=https://c3i.jfrog.io/c3i/misc-v2/logs/pr/16913/2-configs/windows-msvc/openvr/1.12.5//summary.json))
   
   <details><summary>Logs for packageID <code>8ff6058e6d26c29d0faf9f15df61bb25a8d7d0fe</code>:</summary>
   
   ```
   [settings]
   arch=x86_64
   build_type=Release
   compiler=msvc
   compiler.cppstd=14
   compiler.runtime=dynamic
   compiler.runtime_type=Release
   compiler.version=192
   os=Windows
   [options]
   */*:shared=True
   ```
   
   ```
   [...]
   openvr/1.12.5 (test package): CMakeToolchain generated: conan_toolchain.cmake
   openvr/1.12.5 (test package): CMakeToolchain generated: CMakePresets.json
   openvr/1.12.5 (test package): CMakeToolchain generated: ..\..\..\CMakeUserPresets.json
   openvr/1.12.5 (test package): Generating aggregated env files
   openvr/1.12.5 (test package): Generated aggregated env files: ['conanrun.bat', 'conanbuild.bat']
   
   ======== Testing the package: Building ========
   openvr/1.12.5 (test package): Calling build()
   openvr/1.12.5 (test package): Running CMake.configure()
   openvr/1.12.5 (test package): RUN: cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\."
   -- Using Conan toolchain: C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release/generators/conan_toolchain.cmake
   -- Conan toolchain: C++ Standard 14 with extensions OFF
   -- The CXX compiler identification is MSVC 19.29.30148.0
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Conan: Target declared 'openvr::openvr'
   -- Cannot locate shared library: openvr_api64
   -- Conan: Target declared 'JsonCpp::JsonCpp'
   -- Configuring done
   -- Generating done
   CMake Warning:
     Manually-specified variables were not used by the project:
   
       CMAKE_POLICY_DEFAULT_CMP0091
   
   
   -- Build files have been written to: C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release
   
   openvr/1.12.5 (test package): Running CMake.build()
   openvr/1.12.5 (test package): RUN: cmake --build "C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\build\msvc-192-x86_64-14-release" --config Release
   Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
   Copyright (C) Microsoft Corporation. All rights reserved.
   
     Checking Build System
     Building Custom Rule C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/CMakeLists.txt
     test_package.cpp
     test_package.vcxproj -> C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\build\msvc-192-x86_64-14-release\Release\test_package.exe
     Building Custom Rule C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/CMakeLists.txt
   
   
   ======== Testing the package: Executing test ========
   openvr/1.12.5 (test package): Running test()
   openvr/1.12.5 (test package): RUN: Release\test_package
   
   ERROR: openvr/1.12.5 (test package): Error in test() method, line 26
   	self.run(bin_path, env="conanrun")
   	ConanException: Error 3221225781 while executing
   ```
   
   </details>

 * **openvr/1.16.8@:**
   Didn't run or was cancelled before finishing

 * **openvr/1.14.15@:**
   Didn't run or was cancelled before finishing

---

<sup>**Note:** To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.</sup>

</details>
Seems like a pretty cryptic error...
On Linux locally, I get this error from the test_package:
```
Unable to read VR Path Registry from /home/paul/.config/openvr/openvrpaths.vrpath
```

Which I assume is enough to test the library was able to link and execute...
### Conan v1 pipeline :x:

Failure in build 3 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

An unexpected error happened and has been reported. Help is on its way! :horse_racing:

----------

### Conan v2 pipeline (informative, not required for merge) :x:

> **Note**: Conan v2 builds are informative and they are not required for the PR to be merged.

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

<details>

<summary> See details: </summary>

Failure in build 2 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

 * **openvr/1.12.5@:**
   CI failed to create some packages ([All logs](https://c3i.jfrog.io/c3i/misc-v2/summary.html?json=https://c3i.jfrog.io/c3i/misc-v2/logs/pr/16913/2-configs/windows-msvc/openvr/1.12.5//summary.json))
   
   <details><summary>Logs for packageID <code>8ff6058e6d26c29d0faf9f15df61bb25a8d7d0fe</code>:</summary>
   
   ```
   [settings]
   arch=x86_64
   build_type=Release
   compiler=msvc
   compiler.cppstd=14
   compiler.runtime=dynamic
   compiler.runtime_type=Release
   compiler.version=192
   os=Windows
   [options]
   */*:shared=True
   ```
   
   ```
   [...]
   openvr/1.12.5 (test package): CMakeToolchain generated: conan_toolchain.cmake
   openvr/1.12.5 (test package): CMakeToolchain generated: CMakePresets.json
   openvr/1.12.5 (test package): CMakeToolchain generated: ..\..\..\CMakeUserPresets.json
   openvr/1.12.5 (test package): Generating aggregated env files
   openvr/1.12.5 (test package): Generated aggregated env files: ['conanrun.bat', 'conanbuild.bat']
   
   ======== Testing the package: Building ========
   openvr/1.12.5 (test package): Calling build()
   openvr/1.12.5 (test package): Running CMake.configure()
   openvr/1.12.5 (test package): RUN: cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\."
   -- Using Conan toolchain: C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release/generators/conan_toolchain.cmake
   -- Conan toolchain: C++ Standard 14 with extensions OFF
   -- The CXX compiler identification is MSVC 19.29.30148.0
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Conan: Target declared 'openvr::openvr'
   -- Cannot locate shared library: openvr_api64
   -- Conan: Target declared 'JsonCpp::JsonCpp'
   -- Configuring done
   -- Generating done
   CMake Warning:
     Manually-specified variables were not used by the project:
   
       CMAKE_POLICY_DEFAULT_CMP0091
   
   
   -- Build files have been written to: C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release
   
   openvr/1.12.5 (test package): Running CMake.build()
   openvr/1.12.5 (test package): RUN: cmake --build "C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\build\msvc-192-x86_64-14-release" --config Release
   Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
   Copyright (C) Microsoft Corporation. All rights reserved.
   
     Checking Build System
     Building Custom Rule C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/CMakeLists.txt
     test_package.cpp
     test_package.vcxproj -> C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\build\msvc-192-x86_64-14-release\Release\test_package.exe
     Building Custom Rule C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/CMakeLists.txt
   
   
   ======== Testing the package: Executing test ========
   openvr/1.12.5 (test package): Running test()
   openvr/1.12.5 (test package): RUN: Release\test_package
   
   ERROR: openvr/1.12.5 (test package): Error in test() method, line 26
   	self.run(bin_path, env="conanrun")
   	ConanException: Error 3221225781 while executing
   ```
   
   </details>

 * **openvr/1.16.8@:**
   Didn't run or was cancelled before finishing

 * **openvr/1.14.15@:**
   Didn't run or was cancelled before finishing

---

<sup>**Note:** To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.</sup>

</details>
### Conan v1 pipeline :x:

Failure in build 4 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

 * **openvr/1.12.5@:**
   Didn't run or was cancelled before finishing

 * **openvr/1.16.8@:**
   Didn't run or was cancelled before finishing

 * **openvr/1.14.15@:**
   CI failed to create some packages ([All logs](https://c3i.jfrog.io/c3i/misc/summary.html?json=https://c3i.jfrog.io/c3i/misc/logs/pr/16913/4-windows-visual_studio/openvr/1.14.15//summary.json))
   
   <details><summary>Logs for packageID <code>2c6634fd51f3ef6a9d0cb5e68d72452ac04254e0</code>:</summary>
   
   ```
   [settings]
   arch=x86_64
   build_type=Debug
   compiler=Visual Studio
   compiler.runtime=MDd
   compiler.version=16
   os=Windows
   [options]
   openvr:shared=True
   ```
   
   ```
   [...]
   -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Conan: called by CMake conan helper
   -- Conan: Adjusting output directories
   -- Conan: Using cmake targets configuration
   -- Library openvr_api64 found C:/J/w/prod/BuildSingleReference/.conan/data/openvr/1.14.15/_/_/package/2c6634fd51f3ef6a9d0cb5e68d72452ac04254e0/lib/openvr_api64.lib
   -- Library jsoncpp found C:/J/w/prod/BuildSingleReference/.conan/data/jsoncpp/1.9.5/_/_/package/d057732059ea44a47760900cb5e4855d2bea8714/lib/jsoncpp.lib
   -- Conan: Adjusting default RPATHs Conan policies
   -- Conan: Adjusting language standard
   -- Library openvr_api64 found C:/J/w/prod/BuildSingleReference/.conan/data/openvr/1.14.15/_/_/package/2c6634fd51f3ef6a9d0cb5e68d72452ac04254e0/lib/openvr_api64.lib
   -- Found: C:/J/w/prod/BuildSingleReference/.conan/data/openvr/1.14.15/_/_/package/2c6634fd51f3ef6a9d0cb5e68d72452ac04254e0/lib/openvr_api64.lib
   -- Library jsoncpp found C:/J/w/prod/BuildSingleReference/.conan/data/jsoncpp/1.9.5/_/_/package/d057732059ea44a47760900cb5e4855d2bea8714/lib/jsoncpp.lib
   -- Found: C:/J/w/prod/BuildSingleReference/.conan/data/jsoncpp/1.9.5/_/_/package/d057732059ea44a47760900cb5e4855d2bea8714/lib/jsoncpp.lib
   -- Configuring done
   -- Generating done
   -- Build files have been written to: C:/J/w/prod/BuildSingleReference/cci-4152778a/recipes/openvr/all/test_v1_package/build/a1c6d5a6ad006fc2d218956a1d57090927b2b3bc
   
   ----Running------
   > cmake --build C:\J\w\prod\BuildSingleReference\cci-4152778a\recipes\openvr\all\test_v1_package\build\a1c6d5a6ad006fc2d218956a1d57090927b2b3bc --config Debug -- /m:8 /verbosity:minimal
   -----------------
   Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
   Copyright (C) Microsoft Corporation. All rights reserved.
   
     Checking Build System
     Building Custom Rule C:/J/w/prod/BuildSingleReference/cci-4152778a/recipes/openvr/all/test_package/CMakeLists.txt
     test_package.cpp
     test_package.vcxproj -> C:\J\w\prod\BuildSingleReference\cci-4152778a\recipes\openvr\all\test_v1_package\build\a1c6d5a6ad006fc2d218956a1d57090927b2b3bc\bin\test_package.exe
     Building Custom Rule C:/J/w/prod/BuildSingleReference/cci-4152778a/recipes/openvr/all/test_v1_package/CMakeLists.txt
   openvr/1.14.15 (test package): Running test()
   
   ----Running------
   > bin\test_package
   -----------------
   CMake Warning:
     Manually-specified variables were not used by the project:
   
       CMAKE_EXPORT_NO_PACKAGE_REGISTRY
       CMAKE_INSTALL_BINDIR
       CMAKE_INSTALL_DATAROOTDIR
       CMAKE_INSTALL_INCLUDEDIR
       CMAKE_INSTALL_LIBDIR
       CMAKE_INSTALL_LIBEXECDIR
       CMAKE_INSTALL_OLDINCLUDEDIR
       CMAKE_INSTALL_SBINDIR
   
   
   ERROR: openvr/1.14.15 (test package): Error in test() method, line 19
   	self.run(bin_path, run_environment=True)
   	ConanException: Error 3221225781 while executing bin\test_package
   ```
   
   </details>

---

<sup>**Note:** To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.</sup>

----------

### Conan v2 pipeline (informative, not required for merge) :x:

> **Note**: Conan v2 builds are informative and they are not required for the PR to be merged.

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

<details>

<summary> See details: </summary>

Failure in build 2 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

 * **openvr/1.12.5@:**
   CI failed to create some packages ([All logs](https://c3i.jfrog.io/c3i/misc-v2/summary.html?json=https://c3i.jfrog.io/c3i/misc-v2/logs/pr/16913/2-configs/windows-msvc/openvr/1.12.5//summary.json))
   
   <details><summary>Logs for packageID <code>8ff6058e6d26c29d0faf9f15df61bb25a8d7d0fe</code>:</summary>
   
   ```
   [settings]
   arch=x86_64
   build_type=Release
   compiler=msvc
   compiler.cppstd=14
   compiler.runtime=dynamic
   compiler.runtime_type=Release
   compiler.version=192
   os=Windows
   [options]
   */*:shared=True
   ```
   
   ```
   [...]
   openvr/1.12.5 (test package): CMakeToolchain generated: conan_toolchain.cmake
   openvr/1.12.5 (test package): CMakeToolchain generated: CMakePresets.json
   openvr/1.12.5 (test package): CMakeToolchain generated: ..\..\..\CMakeUserPresets.json
   openvr/1.12.5 (test package): Generating aggregated env files
   openvr/1.12.5 (test package): Generated aggregated env files: ['conanrun.bat', 'conanbuild.bat']
   
   ======== Testing the package: Building ========
   openvr/1.12.5 (test package): Calling build()
   openvr/1.12.5 (test package): Running CMake.configure()
   openvr/1.12.5 (test package): RUN: cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\."
   -- Using Conan toolchain: C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release/generators/conan_toolchain.cmake
   -- Conan toolchain: C++ Standard 14 with extensions OFF
   -- The CXX compiler identification is MSVC 19.29.30148.0
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Conan: Target declared 'openvr::openvr'
   -- Cannot locate shared library: openvr_api64
   -- Conan: Target declared 'JsonCpp::JsonCpp'
   -- Configuring done
   -- Generating done
   CMake Warning:
     Manually-specified variables were not used by the project:
   
       CMAKE_POLICY_DEFAULT_CMP0091
   
   
   -- Build files have been written to: C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release
   
   openvr/1.12.5 (test package): Running CMake.build()
   openvr/1.12.5 (test package): RUN: cmake --build "C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\build\msvc-192-x86_64-14-release" --config Release
   Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
   Copyright (C) Microsoft Corporation. All rights reserved.
   
     Checking Build System
     Building Custom Rule C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/CMakeLists.txt
     test_package.cpp
     test_package.vcxproj -> C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\build\msvc-192-x86_64-14-release\Release\test_package.exe
     Building Custom Rule C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/CMakeLists.txt
   
   
   ======== Testing the package: Executing test ========
   openvr/1.12.5 (test package): Running test()
   openvr/1.12.5 (test package): RUN: Release\test_package
   
   ERROR: openvr/1.12.5 (test package): Error in test() method, line 26
   	self.run(bin_path, env="conanrun")
   	ConanException: Error 3221225781 while executing
   ```
   
   </details>

 * **openvr/1.16.8@:**
   Didn't run or was cancelled before finishing

 * **openvr/1.14.15@:**
   Didn't run or was cancelled before finishing

---

<sup>**Note:** To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.</sup>

</details>
[![CLA assistant check](https://cla-assistant.io/pull/badge/signed)](https://cla-assistant.io/conan-io/conan-center-index?pullRequest=16913) <br/>All committers have signed the CLA.
### Conan v1 pipeline :x:

Failure in build 5 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

An unexpected error happened and has been reported. Help is on its way! :horse_racing:
### Conan v1 pipeline :x:

Failure in build 6 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

An unexpected error happened and has been reported. Help is on its way! :horse_racing:

----------

### Conan v2 pipeline (informative, not required for merge) :x:

> **Note**: Conan v2 builds are informative and they are not required for the PR to be merged.

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

<details>

<summary> See details: </summary>

Failure in build 2 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

 * **openvr/1.12.5@:**
   CI failed to create some packages ([All logs](https://c3i.jfrog.io/c3i/misc-v2/summary.html?json=https://c3i.jfrog.io/c3i/misc-v2/logs/pr/16913/2-configs/windows-msvc/openvr/1.12.5//summary.json))
   
   <details><summary>Logs for packageID <code>8ff6058e6d26c29d0faf9f15df61bb25a8d7d0fe</code>:</summary>
   
   ```
   [settings]
   arch=x86_64
   build_type=Release
   compiler=msvc
   compiler.cppstd=14
   compiler.runtime=dynamic
   compiler.runtime_type=Release
   compiler.version=192
   os=Windows
   [options]
   */*:shared=True
   ```
   
   ```
   [...]
   openvr/1.12.5 (test package): CMakeToolchain generated: conan_toolchain.cmake
   openvr/1.12.5 (test package): CMakeToolchain generated: CMakePresets.json
   openvr/1.12.5 (test package): CMakeToolchain generated: ..\..\..\CMakeUserPresets.json
   openvr/1.12.5 (test package): Generating aggregated env files
   openvr/1.12.5 (test package): Generated aggregated env files: ['conanrun.bat', 'conanbuild.bat']
   
   ======== Testing the package: Building ========
   openvr/1.12.5 (test package): Calling build()
   openvr/1.12.5 (test package): Running CMake.configure()
   openvr/1.12.5 (test package): RUN: cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\."
   -- Using Conan toolchain: C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release/generators/conan_toolchain.cmake
   -- Conan toolchain: C++ Standard 14 with extensions OFF
   -- The CXX compiler identification is MSVC 19.29.30148.0
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Conan: Target declared 'openvr::openvr'
   -- Cannot locate shared library: openvr_api64
   -- Conan: Target declared 'JsonCpp::JsonCpp'
   -- Configuring done
   -- Generating done
   CMake Warning:
     Manually-specified variables were not used by the project:
   
       CMAKE_POLICY_DEFAULT_CMP0091
   
   
   -- Build files have been written to: C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release
   
   openvr/1.12.5 (test package): Running CMake.build()
   openvr/1.12.5 (test package): RUN: cmake --build "C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\build\msvc-192-x86_64-14-release" --config Release
   Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
   Copyright (C) Microsoft Corporation. All rights reserved.
   
     Checking Build System
     Building Custom Rule C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/CMakeLists.txt
     test_package.cpp
     test_package.vcxproj -> C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\build\msvc-192-x86_64-14-release\Release\test_package.exe
     Building Custom Rule C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/CMakeLists.txt
   
   
   ======== Testing the package: Executing test ========
   openvr/1.12.5 (test package): Running test()
   openvr/1.12.5 (test package): RUN: Release\test_package
   
   ERROR: openvr/1.12.5 (test package): Error in test() method, line 26
   	self.run(bin_path, env="conanrun")
   	ConanException: Error 3221225781 while executing
   ```
   
   </details>

 * **openvr/1.16.8@:**
   Didn't run or was cancelled before finishing

 * **openvr/1.14.15@:**
   Didn't run or was cancelled before finishing

---

<sup>**Note:** To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.</sup>

</details>
### Conan v1 pipeline :x:

Failure in build 7 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

 * **openvr/1.12.5@:**
   Didn't run or was cancelled before finishing

 * **openvr/1.14.15@:**
   CI failed to create some packages ([All logs](https://c3i.jfrog.io/c3i/misc/summary.html?json=https://c3i.jfrog.io/c3i/misc/logs/pr/16913/7-windows-visual_studio/openvr/1.14.15//summary.json))
   
   <details><summary>Logs for packageID <code>779278c071efc3c8d8dbd9705d42e9637511e43e</code>:</summary>
   
   ```
   [settings]
   arch=x86_64
   build_type=Release
   compiler=Visual Studio
   compiler.runtime=MD
   compiler.version=16
   os=Windows
   [options]
   openvr:shared=True
   ```
   
   ```
   [...]
   -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Conan: called by CMake conan helper
   -- Conan: Adjusting output directories
   -- Conan: Using cmake targets configuration
   -- Library openvr_api64 found C:/J/w/prod/BuildSingleReference/.conan/data/openvr/1.14.15/_/_/package/779278c071efc3c8d8dbd9705d42e9637511e43e/lib/openvr_api64.lib
   -- Library jsoncpp found C:/J/w/prod/BuildSingleReference/.conan/data/jsoncpp/1.9.5/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/lib/jsoncpp.lib
   -- Conan: Adjusting default RPATHs Conan policies
   -- Conan: Adjusting language standard
   -- Library openvr_api64 found C:/J/w/prod/BuildSingleReference/.conan/data/openvr/1.14.15/_/_/package/779278c071efc3c8d8dbd9705d42e9637511e43e/lib/openvr_api64.lib
   -- Found: C:/J/w/prod/BuildSingleReference/.conan/data/openvr/1.14.15/_/_/package/779278c071efc3c8d8dbd9705d42e9637511e43e/lib/openvr_api64.lib
   -- Library jsoncpp found C:/J/w/prod/BuildSingleReference/.conan/data/jsoncpp/1.9.5/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/lib/jsoncpp.lib
   -- Found: C:/J/w/prod/BuildSingleReference/.conan/data/jsoncpp/1.9.5/_/_/package/3fb49604f9c2f729b85ba3115852006824e72cab/lib/jsoncpp.lib
   -- Configuring done
   -- Generating done
   -- Build files have been written to: C:/J/w/prod/BuildSingleReference/cci-c2725430/recipes/openvr/all/test_v1_package/build/25182a297184e1416d6c30fadc3ce3fe2381a7d9
   
   ----Running------
   > cmake --build C:\J\w\prod\BuildSingleReference\cci-c2725430\recipes\openvr\all\test_v1_package\build\25182a297184e1416d6c30fadc3ce3fe2381a7d9 --config Release -- /m:8 /verbosity:minimal
   -----------------
   Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
   Copyright (C) Microsoft Corporation. All rights reserved.
   
     Checking Build System
     Building Custom Rule C:/J/w/prod/BuildSingleReference/cci-c2725430/recipes/openvr/all/test_package/CMakeLists.txt
     test_package.cpp
     test_package.vcxproj -> C:\J\w\prod\BuildSingleReference\cci-c2725430\recipes\openvr\all\test_v1_package\build\25182a297184e1416d6c30fadc3ce3fe2381a7d9\bin\test_package.exe
     Building Custom Rule C:/J/w/prod/BuildSingleReference/cci-c2725430/recipes/openvr/all/test_v1_package/CMakeLists.txt
   openvr/1.14.15 (test package): Running test()
   
   ----Running------
   > bin\test_package
   -----------------
   CMake Warning:
     Manually-specified variables were not used by the project:
   
       CMAKE_EXPORT_NO_PACKAGE_REGISTRY
       CMAKE_INSTALL_BINDIR
       CMAKE_INSTALL_DATAROOTDIR
       CMAKE_INSTALL_INCLUDEDIR
       CMAKE_INSTALL_LIBDIR
       CMAKE_INSTALL_LIBEXECDIR
       CMAKE_INSTALL_OLDINCLUDEDIR
       CMAKE_INSTALL_SBINDIR
   
   
   ERROR: openvr/1.14.15 (test package): Error in test() method, line 19
   	self.run(bin_path, run_environment=True)
   	ConanException: Error 3221225781 while executing bin\test_package
   ```
   
   </details>

 * **openvr/1.16.8@:**
   Didn't run or was cancelled before finishing

---

<sup>**Note:** To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.</sup>

----------

### Conan v2 pipeline (informative, not required for merge) :x:

> **Note**: Conan v2 builds are informative and they are not required for the PR to be merged.

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

<details>

<summary> See details: </summary>

Failure in build 2 (`b6538174d62e991e7f23d8c57e822ab67a44cfba`):

 * **openvr/1.12.5@:**
   CI failed to create some packages ([All logs](https://c3i.jfrog.io/c3i/misc-v2/summary.html?json=https://c3i.jfrog.io/c3i/misc-v2/logs/pr/16913/2-configs/windows-msvc/openvr/1.12.5//summary.json))
   
   <details><summary>Logs for packageID <code>8ff6058e6d26c29d0faf9f15df61bb25a8d7d0fe</code>:</summary>
   
   ```
   [settings]
   arch=x86_64
   build_type=Release
   compiler=msvc
   compiler.cppstd=14
   compiler.runtime=dynamic
   compiler.runtime_type=Release
   compiler.version=192
   os=Windows
   [options]
   */*:shared=True
   ```
   
   ```
   [...]
   openvr/1.12.5 (test package): CMakeToolchain generated: conan_toolchain.cmake
   openvr/1.12.5 (test package): CMakeToolchain generated: CMakePresets.json
   openvr/1.12.5 (test package): CMakeToolchain generated: ..\..\..\CMakeUserPresets.json
   openvr/1.12.5 (test package): Generating aggregated env files
   openvr/1.12.5 (test package): Generated aggregated env files: ['conanrun.bat', 'conanbuild.bat']
   
   ======== Testing the package: Building ========
   openvr/1.12.5 (test package): Calling build()
   openvr/1.12.5 (test package): Running CMake.configure()
   openvr/1.12.5 (test package): RUN: cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\."
   -- Using Conan toolchain: C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release/generators/conan_toolchain.cmake
   -- Conan toolchain: C++ Standard 14 with extensions OFF
   -- The CXX compiler identification is MSVC 19.29.30148.0
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Conan: Target declared 'openvr::openvr'
   -- Cannot locate shared library: openvr_api64
   -- Conan: Target declared 'JsonCpp::JsonCpp'
   -- Configuring done
   -- Generating done
   CMake Warning:
     Manually-specified variables were not used by the project:
   
       CMAKE_POLICY_DEFAULT_CMP0091
   
   
   -- Build files have been written to: C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/build/msvc-192-x86_64-14-release
   
   openvr/1.12.5 (test package): Running CMake.build()
   openvr/1.12.5 (test package): RUN: cmake --build "C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\build\msvc-192-x86_64-14-release" --config Release
   Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
   Copyright (C) Microsoft Corporation. All rights reserved.
   
     Checking Build System
     Building Custom Rule C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/CMakeLists.txt
     test_package.cpp
     test_package.vcxproj -> C:\J\w\prod-v2\BuildSingleReference\cci-b582c67c\recipes\openvr\all\test_package\build\msvc-192-x86_64-14-release\Release\test_package.exe
     Building Custom Rule C:/J/w/prod-v2/BuildSingleReference/cci-b582c67c/recipes/openvr/all/test_package/CMakeLists.txt
   
   
   ======== Testing the package: Executing test ========
   openvr/1.12.5 (test package): Running test()
   openvr/1.12.5 (test package): RUN: Release\test_package
   
   ERROR: openvr/1.12.5 (test package): Error in test() method, line 26
   	self.run(bin_path, env="conanrun")
   	ConanException: Error 3221225781 while executing
   ```
   
   </details>

 * **openvr/1.16.8@:**
   Didn't run or was cancelled before finishing

 * **openvr/1.14.15@:**
   Didn't run or was cancelled before finishing

---

<sup>**Note:** To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.</sup>

</details>

Resolving patch:
diff --git a/recipes/openvr/all/conanfile.py b/recipes/openvr/all/conanfile.py
--- a/recipes/openvr/all/conanfile.py
+++ b/recipes/openvr/all/conanfile.py
@@ -1,16 +1,30 @@
 import os
-from conans import ConanFile, tools, CMake
-from conans.errors import ConanInvalidConfiguration
+
+from conan import ConanFile
+from conan.errors import ConanInvalidConfiguration
+from conan.tools.apple import is_apple_os
+from conan.tools.build import check_min_cppstd, stdcpp_library
+from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
+from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, replace_in_file, rmdir, \
+    save, mkdir
+from conan.tools.scm import Version
+
+required_conan_version = ">=1.53.0"
+
 
 class OpenvrConan(ConanFile):
     name = "openvr"
-    description = "API and runtime that allows access to VR hardware from applications have specific knowledge of the hardware they are targeting."
-    topics = ("conan", "openvr", "vr", )
+    description = (
+        "API and runtime that allows access to VR hardware from applications "
+        "have specific knowledge of the hardware they are targeting."
+    )
+    license = "BSD-3-Clause"
     url = "https://github.com/conan-io/conan-center-index"
     homepage = "https://github.com/ValveSoftware/openvr"
-    license = "BSD-3-Clause"
+    topics = ("vr", "virtual reality")
 
-    settings = "os", "compiler", "build_type", "arch"
+    package_type = "library"
+    settings = "os", "arch", "compiler", "build_type"
     options = {
         "shared": [True, False],
         "fPIC": [True, False],
@@ -20,13 +34,8 @@ class OpenvrConan(ConanFile):
         "fPIC": True,
     }
 
-    exports_sources = ["CMakeLists.txt", "patches/**"]
-    generators = "cmake"
-    _cmake = None
-
-    @property
-    def _source_subfolder(self):
-        return "source_subfolder"
+    def export_sources(self):
+        export_conandata_patches(self)
 
     def config_options(self):
         if self.settings.os == "Windows":
@@ -34,69 +43,83 @@ def config_options(self):
 
     def configure(self):
         if self.options.shared:
-            del self.options.fPIC
-        if self.settings.compiler.cppstd:
-            tools.check_min_cppstd(self, "11")
+            self.options.rm_safe("fPIC")
 
-        if self.settings.compiler == "gcc" and tools.Version(self.settings.compiler.version) < "5":
-            raise ConanInvalidConfiguration("OpenVR can't be compiled by {0} {1}".format(self.settings.compiler,
-                                                                                         self.settings.compiler.version))
+    def layout(self):
+        cmake_layout(self, src_folder="src")
 
     def requirements(self):
-        self.requires("jsoncpp/1.9.4")
+        self.requires("jsoncpp/1.9.5", transitive_headers=True, transitive_libs=True)
+
+    def validate(self):
+        if self.settings.compiler.cppstd:
+            check_min_cppstd(self, 11)
+        if self.settings.compiler == "gcc" and Version(self.settings.compiler.version) < "5":
+            raise ConanInvalidConfiguration(
+                f"OpenVR can't be compiled by {self.settings.compiler} {self.settings.compiler.version}"
+            )
 
     def source(self):
-        tools.get(**self.conan_data["sources"][self.version])
-        extracted_dir = "{}-{}".format(self.name, self.version)
-        os.rename(extracted_dir, self._source_subfolder)
+        get(self, **self.conan_data["sources"][self.version], strip_root=True)
+
+    def generate(self):
+        tc = CMakeToolchain(self)
+        tc.cache_variables["BUILD_SHARED"] = self.options.shared
+        tc.cache_variables["BUILD_UNIVERSAL"] = False
+        # Let Conan handle the stdlib setting, even if we are using libc++
+        tc.cache_variables["USE_LIBCXX"] = False
+        tc.generate()
+        tc = CMakeDeps(self)
+        tc.generate()
 
     def _patch_sources(self):
-        for patch in self.conan_data.get("patches", {}).get(self.version, []):
-            tools.patch(**patch)
+        apply_conandata_patches(self)
         # Honor fPIC=False
-        tools.replace_in_file(os.path.join(self._source_subfolder, "CMakeLists.txt"),
-                              "-fPIC", "")
-        # Unvendor jsoncpp (we rely on our CMake wrapper for jsoncpp injection)
-        tools.replace_in_file(os.path.join(self._source_subfolder, "src", "CMakeLists.txt"),
-                              "jsoncpp.cpp", "")
-        tools.rmdir(os.path.join(self._source_subfolder, "src", "json"))
-
-    def _configure_cmake(self):
-        if self._cmake:
-            return self._cmake
-        self._cmake = CMake(self)
-        self._cmake.definitions["BUILD_SHARED"] = self.options.shared
-        self._cmake.definitions["BUILD_UNIVERSAL"] = False
-        self._cmake.definitions["USE_LIBCXX"] = False
-        self._cmake.configure()
-
-        return self._cmake
+        replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"), "-fPIC", "")
+        # Unvendor jsoncpp
+        replace_in_file(self, os.path.join(self.source_folder, "src", "CMakeLists.txt"), "jsoncpp.cpp", "")
+        rmdir(self, os.path.join(self.source_folder, "src", "json"))
+        # Add jsoncpp dependency from Conan
+        save(self, os.path.join(self.source_folder, "src", "CMakeLists.txt"),
+             "find_package(jsoncpp REQUIRED CONFIG)\n"
+             "target_link_libraries(${LIBNAME} JsonCpp::JsonCpp)",
+             append=True)
 
     def build(self):
         self._patch_sources()
-        cmake = self._configure_cmake()
+        cmake = CMake(self)
+        cmake.configure()
         cmake.build()
 
+    @property
+    def _lib_name(self):
+        if self.settings.os == "Windows" and self.settings.arch == "x86_64":
+            return "openvr_api64"
+        return "openvr_api"
+
     def package(self):
-        self.copy("LICENSE", src=os.path.join(self.source_folder, self._source_subfolder), dst="licenses")
-        cmake = self._configure_cmake()
+        copy(self, "LICENSE", src=self.source_folder, dst=os.path.join(self.package_folder, "licenses"))
+        cmake = CMake(self)
         cmake.install()
-        self.copy(pattern="openvr_api*.dll", dst="bin", src="bin", keep_path=False)
-        tools.rmdir(os.path.join(self.package_folder, "share"))
+        if self.settings.os == "Windows" and self.options.shared:
+            mkdir(self, os.path.join(self.package_folder, "bin"))
+            os.rename(os.path.join(self.package_folder, "lib", f"{self._lib_name}.dll"),
+                      os.path.join(self.package_folder, "bin", f"{self._lib_name}.dll"))
+        rmdir(self, os.path.join(self.package_folder, "share"))
 
     def package_info(self):
-        self.cpp_info.names["pkg_config"] = "openvr"
-        self.cpp_info.libs = tools.collect_libs(self)
+        self.cpp_info.set_property("pkg_config_name", "openvr")
+        self.cpp_info.libs = [self._lib_name]
         self.cpp_info.includedirs.append(os.path.join("include", "openvr"))
 
         if not self.options.shared:
             self.cpp_info.defines.append("OPENVR_BUILD_STATIC")
-            libcxx = tools.stdcpp_library(self)
+            libcxx = stdcpp_library(self)
             if libcxx:
                 self.cpp_info.system_libs.append(libcxx)
 
         if self.settings.os in ["Linux", "FreeBSD"]:
             self.cpp_info.system_libs.append("dl")
 
-        if tools.is_apple_os(self.settings.os):
-            self.cpp_info.frameworks.append("Foundation")
+        if is_apple_os(self):
+            self.cpp_info.frameworks.extend(["Foundation", "CoreFoundation"])


Test patch:
diff --git a/recipes/openvr/all/test_package/CMakeLists.txt b/recipes/openvr/all/test_package/CMakeLists.txt
--- a/recipes/openvr/all/test_package/CMakeLists.txt
+++ b/recipes/openvr/all/test_package/CMakeLists.txt
@@ -1,9 +1,8 @@
-cmake_minimum_required(VERSION 3.1)
-project(test_package)
+cmake_minimum_required(VERSION 3.15)
+project(test_package LANGUAGES CXX)
 
-include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
-conan_basic_setup()
+find_package(openvr REQUIRED CONFIG)
 
 add_executable(${CMAKE_PROJECT_NAME} test_package.cpp)
-target_link_libraries(${CMAKE_PROJECT_NAME} ${CONAN_LIBS})
+target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE openvr::openvr)
 set_property(TARGET ${CMAKE_PROJECT_NAME} PROPERTY CXX_STANDARD 11)
diff --git a/recipes/openvr/all/test_package/conanfile.py b/recipes/openvr/all/test_package/conanfile.py
--- a/recipes/openvr/all/test_package/conanfile.py
+++ b/recipes/openvr/all/test_package/conanfile.py
@@ -1,9 +1,19 @@
-from conans import ConanFile, CMake, tools
+from conan import ConanFile
+from conan.tools.build import can_run
+from conan.tools.cmake import cmake_layout, CMake
 import os
 
+
 class TestPackageConan(ConanFile):
-    settings = "os", "compiler", "build_type", "arch"
-    generators = "cmake"
+    settings = "os", "arch", "compiler", "build_type"
+    generators = "CMakeDeps", "CMakeToolchain", "VirtualRunEnv"
+    test_type = "explicit"
+
+    def requirements(self):
+        self.requires(self.tested_reference_str)
+
+    def layout(self):
+        cmake_layout(self)
 
     def build(self):
         cmake = CMake(self)
@@ -11,6 +21,6 @@ def build(self):
         cmake.build()
 
     def test(self):
-        if not tools.cross_building(self.settings):
-            bin_path = os.path.join("bin", "test_package")
-            self.run(bin_path, run_environment=True)
+        if can_run(self):
+            bin_path = os.path.join(self.cpp.build.bindir, "test_package")
+            self.run(bin_path, env="conanrun")
diff --git a/recipes/openvr/all/test_v1_package/CMakeLists.txt b/recipes/openvr/all/test_v1_package/CMakeLists.txt
new file mode 100644
--- /dev/null
+++ b/recipes/openvr/all/test_v1_package/CMakeLists.txt
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION 3.15)
+project(test_package)
+
+include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
+conan_basic_setup(TARGETS)
+
+add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package/
+                 ${CMAKE_CURRENT_BINARY_DIR}/test_package/)
diff --git a/recipes/openvr/all/test_v1_package/conanfile.py b/recipes/openvr/all/test_v1_package/conanfile.py
new file mode 100644
--- /dev/null
+++ b/recipes/openvr/all/test_v1_package/conanfile.py
@@ -0,0 +1,16 @@
+from conans import ConanFile, CMake, tools
+import os
+
+class TestPackageConan(ConanFile):
+    settings = "os", "compiler", "build_type", "arch"
+    generators = "cmake", "cmake_find_package_multi"
+
+    def build(self):
+        cmake = CMake(self)
+        cmake.configure()
+        cmake.build()
+
+    def test(self):
+        if not tools.cross_building(self.settings):
+            bin_path = os.path.join("bin", "test_package")
+            self.run(bin_path, run_environment=True)