That’s really a cmake question and should probably be taken to their forums.
See the output of cmake --help:
...
The following generators are available on this platform (* marks default):
Visual Studio 17 2022 = Generates Visual Studio 2022 project files.
Use -A option to specify architecture.
* Visual Studio 16 2019 = Generates Visual Studio 2019 project files.
Use -A option to specify architecture.
Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
Optional [arch] can be "Win64" or "ARM".
...
For VS 2019,2022 you no longer specify the architecture as part of the generator name, but with the -A command line argument:
Thanks @carsten_neumann , it helped and I generated and then built the SDK . But I still doubt i am getting the final output.
Below are the log for generating the Solution file(.sln) and below that is the log os the built solution in the VS 2022
Generated files logs :
- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR) (found version “”)
– Looking for pthread.h
– Looking for pthread.h - not found
– Found Threads: TRUE – Could NOT find JsonCpp (missing: JsonCpp_INCLUDE_DIR JsonCpp_LIBRARY)
– Could NOT find glslc, using precompiled .spv files
– Looking for secure_getenv
– Looking for secure_getenv - not found
– Looking for __secure_getenv
– Looking for __secure_getenv - not found
– Looking for timespec_get
– Looking for timespec_get - found
– Found and will use pre-generated xr_generated_dispatch_table.h in source tree
– Found and will use pre-generated xr_generated_dispatch_table.c in source tree
– Found and will use pre-generated xr_generated_loader.hpp in source tree
– Found and will use pre-generated xr_generated_loader.cpp in source tree
– Configuring done
– Generating done
– Build files have been written to:
Built using Visual Studio 2022 :
6>Building Custom Rule - STMicroelectronics/2022/AR-VR/Open-XR/OpenXR-SDK/OpenXR-SDK/CMakeLists.txt
7>------ Skipped Rebuild All: Project: INSTALL, Configuration: MinSizeRel x64 ------
7>Project not selected to build for this solution configuration
========== Rebuild All: 5 succeeded, 0 failed, 2 skipped ==========