openvr
openvr copied to clipboard
Openvr failed to setup with CMake Error on MSVC
Hi all, Openvr failed to setup with CMake Error on MSVC. Could you help look?
Environment: Windows: windows server 2019 VS: 2019
Repro steps:
- git clone https://github.com/ValveSoftware/openvr F:\gitP\ValveSoftware\openvr
- rename F:\gitP\ValveSoftware\openvr\src\vrcommon vrcore
- xcopy "F:\gitP\ami-iit\openvr\src\vrcommon\vrassert.h" "F:\gitP\ValveSoftware\openvr\src\vrcore" /k/r/e/i/s/c/h/f/y
- cd F:\gitP\ValveSoftware\openvr\build_amd64
- cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release ..
Expected: setup successfully.
Error message: CMake Error at src/CMakeLists.txt:94 (add_library): Cannot find source file:
vrcommon/dirtools_public.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
CMake Error at src/CMakeLists.txt:94 (add_library): No SOURCES given to target: openvr_api64
CMake Generate step failed. Build files cannot be regenerated correctly.
log: configure.log