libressl/portable

uninstall target should maybe only be generated if installed?

Closed this issue · 4 comments

https://github.com/libressl/portable/blob/master/CMakeLists.txt#L530-L543

I would think that if(NOT TARGET uninstall) section should be included in the block above it if(ENABLE_LIBRESSL_INSTALL) such that if there is no install, then no uninstall should be generated?

Here's a visual of generated projects - at the end is 'uninstall' which comes from libressl.

image

The option to skip install is on, because I'm just linking against the static libraries that are built, so there's no install to do, therefore there should also be nothing to uninstall...

yes