Add cmake_target to change the target used by CMake#477
Add cmake_target to change the target used by CMake#477henryiii merged 1 commit intoscikit-build:masterfrom
Conversation
216e1c3 to
5deee00
Compare
|
Thanks for the contribution 🙏 I will be able to review tomorrow. |
a037c7c to
dfeaad0
Compare
|
Not sure about the errors in travis, appveyor and azure, they seem unrelated, but let me know if I can help. |
|
I will rebase the topic after the fix addressing the Continuous Integration errors is merged. Thanks for your patience 🙏 |
jcfr
left a comment
There was a problem hiding this comment.
Thanks for the contribution 🙏
Few nitpicks and it will be good integration.
Make also sure to:
- update the documentation
- add an entry to CHANGES file
5d61d89 to
b5dacd8
Compare
jcfr
left a comment
There was a problem hiding this comment.
Since I would like to spend some more time testing this, I will not yet integrate it in the upcoming release.
Thanks for your patience
67fd4c9 to
65cb4d0
Compare
b407632 to
b7ee1bb
Compare
|
Split make function into two:
|
|
Rebase is needed after your review. I splitted it to facilitate review on the make, make_imp refactor. |
2b2973f to
a8d4328
Compare
|
Let me know if I can help to push this forward @jcfr. |
a8d4328 to
f2ec389
Compare
|
Hi @jcfr, any hope this would be merged? Let me know how/if I can help further. Thanks! |
|
@jcfr that's great! |
|
Could you rebase (or merge) with master? Otherwise, I can later. |
73fd4d7 to
e4a5485
Compare
|
@henryiii rebased on top of current master |
e4a5485 to
0fffcc3
Compare
Parses the command line for the `--target` option.
And also provide the `cmake_install_target` parameter in `setup.py`
The command line argument has preference over the `cmake_install_target` from
`setup.py`.
This allows the user to point to targets other than 'install'.
The user has to set a target in CMake to install only a specific
component.
```cmake
install(TARGETS foo COMPONENT runtime)
add_custom_target(foo-install-runtime
${CMAKE_COMMAND}
-DCMAKE_INSTALL_COMPONENT=runtime
-P "${PROJECT_BINARY_DIR}/cmake_install.cmake")
```
DevNote: There is a refactor of the function `cmaker.make`
That allows calling the function twice in case the target is
not the default `install`.
0fffcc3 to
b8be6ba
Compare
|
Thanks @henryiii for taking care of this, please ping me anytime if there is any future issue related with this. |
PR was merged: scikit-build/scikit-build#477
Parses the command line for the
--targetoption.And also provide the
cmake_install_targetparameter insetup.pyThe command line argument has preference over the
cmake_install_targetfromsetup.py.This allows the user to point to targets other than 'install'.
The user has to set a target in CMake to install only a specific
component.