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

[Windows][noetic-devel] Generate executables without extension name. #1061

Merged
merged 3 commits into from
Feb 6, 2020

Conversation

seanyen
Copy link
Contributor

@seanyen seanyen commented Feb 5, 2020

For scripts ending with .py, add_python_executable will take the full filename (e.g., abc.py) and produce the executable ending with .py.exe (e.g., abc.py.exe) and which is not the expected script alias.

The pull request is proposing to extract the filename without the last extension by using NAME_WLE first and then generate the correct executable with the name without the extra .py.

And it would be great this can be backport to kinetic branch. Thanks!

@seanyen
Copy link
Contributor Author

seanyen commented Feb 5, 2020

@dirk-thomas This is ready for review and merge. Thanks!

cmake/platform/windows.cmake Outdated Show resolved Hide resolved
cmake/platform/windows.cmake Outdated Show resolved Hide resolved
@dirk-thomas
Copy link
Member

Thanks for the patch.

@dirk-thomas dirk-thomas merged commit 3f57b47 into ros:noetic-devel Feb 6, 2020
dirk-thomas pushed a commit that referenced this pull request Feb 6, 2020
…1061)

* generate exe without extension name.

* use NAME_WE to be compatible with CMake<3.14.

* Fixed the wrong reference.
@dirk-thomas
Copy link
Member

Cherry-picked to kinetic-devel: 51b6b6a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants