Skip to content

Suggest using CMAKE_BINARY_DIR to copy vc142.pdb for a CMake out-of-source build #27

Description

@areong

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 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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions