Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Move CMakePresets.json to the top directory #383

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

utzcoz
Copy link
Contributor

@utzcoz utzcoz commented Mar 11, 2023

If developers want to build HelloXR on Windows platform with CMake, they might want to copy CMakePresets.json to the top directory for convenience. This copy command might cause dirty git diff. This CL just moves it to the top directory to remove this extra copying command for developers.

If developers want to build HelloXR on Windows platform with CMake, they
might want to copy `CMakePresets.json` to the top directory for
convenience. This copy command might cause dirty git diff. This CL just
moves it to the top directory to remove this extra copying command for
developers.

Signed-off-by: utzcoz <utzcoz@outlook.com>
Signed-off-by: utzcoz <utzcoz@outlook.com>
@utzcoz
Copy link
Contributor Author

utzcoz commented Mar 11, 2023

Hi @rpavlik , could you help to review this PR? Thanks.

@rpavlik
Copy link
Contributor

rpavlik commented Mar 12, 2023

So having it there actually makes it harder to build with vscode, I regret having it there for Monado. (You have to launch vscode from a developer command prompt. Also makes it impossible to use vscode remote ssh into a Windows machine.) The only reason it's in the repo is it makes the CI easier. If it's confusing I would rather remove it than publicize it more, the preset thing isn't ready for widespread use yet, at least with vscode, and visual studio isn't much better with it.

(I really should file issues with the vscode extension, etc so they can actually fix it, since the idea is nice and it works well on Linux usually.)

@utzcoz
Copy link
Contributor Author

utzcoz commented Mar 12, 2023

@rpavlik I like the idea of CMakePresets.json, and looks like it can help us to build HelloXR on Windows with normal Powershell terminal instead of "Developer Powershell Prompt for VS 2022".

(I really should file issues with the vscode extension, etc so they can actually fix it, since the idea is nice and it works well on Linux usually.)

I think CMakePresets.json is the official feature of CMake, what about filing an issue to let vscode to support it?

@rpavlik
Copy link
Contributor

rpavlik commented Mar 13, 2023

Yeah, it is "supported", but it turns off all the kit-finding the vscode extension normally does, which is why you have to launch from a dev command prompt. I'd be quite happy if we could get this resolved :)

@utzcoz
Copy link
Contributor Author

utzcoz commented Mar 18, 2023

@rpavlik Another choice is to remove CMakePreset.json and use Monado's ps1 script to build this repository on Windows? Maybe I can give a try.

@utzcoz utzcoz closed this Mar 18, 2023
@utzcoz utzcoz deleted the move-CMakePresets-json-to-the-top-directory branch March 18, 2023 04:12
@utzcoz utzcoz restored the move-CMakePresets-json-to-the-top-directory branch March 27, 2023 09:23
@utzcoz utzcoz reopened this Mar 27, 2023
@utzcoz
Copy link
Contributor Author

utzcoz commented Mar 27, 2023

Looks like CLion detects CMakePresets.json fromt the top directory default. So I reopen this PR.

@rpavlik
Copy link
Contributor

rpavlik commented Mar 27, 2023

Hoping for a resolution to microsoft/vscode-cmake-tools#3079 first, since the current status is really painful for me to do Windows dev with a presets file.

@rpavlik-bot rpavlik-bot added the synced to gitlab Synchronized to OpenXR internal GitLab label Apr 5, 2023
@rpavlik-bot
Copy link
Collaborator

An issue (number 1982) has been filed to correspond to this pull request in the internal Khronos GitLab (Khronos members only: KHR:openxr/openxr#1982 ), to facilitate working group processes.

This GitHub pull request will continue to be the main site of discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
synced to gitlab Synchronized to OpenXR internal GitLab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants