I built from source with Visual Studio Code CMake Tools, and the build process exited with an error copying file unity-xr-plugin/XRSDKOPENVR.dir/Release/vc142.pdb.
Configurations: VS Community 2019 Release x86_amd64
Proposed solution
At line 165 in CMakeLists.txt, replace CMAKE_SOURCE_DIR with CMAKE_BINARY_DIR such that the path to the PDB file becomes unity-xr-plugin/build/XRSDKOPENVR.dir/Release/vc142.pdb in an out-of-source build. CMake builds successfully with this modification. I did not test the built binaries however.
Problem
I built from source with Visual Studio Code CMake Tools, and the build process exited with an error copying file
unity-xr-plugin/XRSDKOPENVR.dir/Release/vc142.pdb
.Configurations: VS Community 2019 Release x86_amd64
Proposed solution
At line 165 in CMakeLists.txt, replace
CMAKE_SOURCE_DIR
withCMAKE_BINARY_DIR
such that the path to the PDB file becomesunity-xr-plugin/build/XRSDKOPENVR.dir/Release/vc142.pdb
in an out-of-source build. CMake builds successfully with this modification. I did not test the built binaries however.