-
Notifications
You must be signed in to change notification settings - Fork 100
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
Correct spelling of Python variable in CMake #1319
Conversation
This seems to have issues on newer Windows/CMake combinations Signed-off-by: Michael Carroll <[email protected]>
Codecov Report
@@ Coverage Diff @@
## sdf14 #1319 +/- ##
=======================================
Coverage 87.47% 87.47%
=======================================
Files 134 134
Lines 17751 17751
=======================================
Hits 15528 15528
Misses 2223 2223 📢 Have feedback on the report? Share it here. |
Got hit by this issue, too (in my case, opening GVim.exe :) ). The resolution is much simpler, though: sdformat/sdf/1.5/CMakeLists.txt Line 70 in 881cbb7
See, Pyhton ? :-D It's only in the 1.5 SDF CMakeLists, elsewhere it's okay. @mjcarroll I think you can revert the other changes in your PR as they don't really make sense. CMake docs say I guess it didn't manifest on the other operating systems as their default is to run .py files with an interpreter instead of an IDE. Although it could have used a wrong interpreter. |
Signed-off-by: Michael Carroll <[email protected]>
Good call, reverted.
Yeah, we have a shebang line in the |
The title of the PR should be renamed though. |
Not critical, but does seem to have issues, at least on Windows.
I believe that the problem is that COMMAND is expected to be one argument, so passing the
python.exe
plus the script name violates that. I'm not sure why this hasn't been an issue before, but it causes all sorts of hilariously bad behavior on Windows (popping open the Microsoft store of VS code rather than trying to run the script).