-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
Fix Test CMake project for Windows and parametrize paths #683
Conversation
7ee5457
to
0715078
Compare
0715078
to
37de2b9
Compare
# Local dependency paths, adapt them to your setup | ||
set(GODOT_HEADERS_PATH ../godot-headers/) | ||
set(CPP_BINDINGS_PATH ../) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would require specifying options via command-line all the time. I suggest being able to override the options:
set(GODOT_HEADERS_PATH ../godot-headers/ CACHE PATH "Path to Godot headers")
set(CPP_BINDINGS_PATH ../ CACHE PATH "Path to C++ bindings")
CMake docs: https://cmake.org/cmake/help/latest/command/set.html
If using PATH
breaks something, then a STRING
argument could be used. But PATH
gives a hint for cmake-gui
to pick directories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested with PATH and it didn't work , so I used STRING
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Xrayez can you please review again the latest changes ? Thanks
test/cmake_build.bat
Outdated
@@ -0,0 +1,2 @@ | |||
REM for detailed log you can add -- /verbosity:detailed | |||
cmake --build ./build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know to be honest, if we do remove this then it's better to do via another PR in any case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will create another PR to open the discussion about those .bat / shell scripts
37de2b9
to
f227a01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested, but looks fine!
…o test_cmake_windows
91d92dc
to
df87396
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Congratulations for your first merged pull request 🎉
No description provided.