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
Add COMPONENT
to all install()
commands
#756
Conversation
I am out of the office right now but will evaluate this when I get back. |
For some reason, installing the |
Ah, you're right. It looks like I now see: $ cmake -GNinja -DCMAKE_INSTALL_PREFIX=/tmp .
$ cmake --build .
$ cmake --install . --component runtime
-- Install configuration: "Release"
-- Installing: /tmp/lib64/libjpeg.so.62.4.0
-- Installing: /tmp/lib64/libjpeg.so.62
-- Set non-toolchain portion of runtime path of "/tmp/lib64/libjpeg.so.62.4.0" to "/tmp/lib64"
-- Installing: /tmp/lib64/libjpeg.so
-- Installing: /tmp/bin/cjpeg
-- Set non-toolchain portion of runtime path of "/tmp/bin/cjpeg" to "/tmp/lib64"
-- Installing: /tmp/bin/djpeg
-- Set non-toolchain portion of runtime path of "/tmp/bin/djpeg" to "/tmp/lib64"
-- Installing: /tmp/bin/jpegtran
-- Set non-toolchain portion of runtime path of "/tmp/bin/jpegtran" to "/tmp/lib64"
-- Installing: /tmp/lib64/libturbojpeg.so.0.3.0
-- Installing: /tmp/lib64/libturbojpeg.so.0
-- Set non-toolchain portion of runtime path of "/tmp/lib64/libturbojpeg.so.0.3.0" to "/tmp/lib64"
-- Installing: /tmp/lib64/libturbojpeg.so
-- Installing: /tmp/bin/tjbench
-- Set non-toolchain portion of runtime path of "/tmp/bin/tjbench" to "/tmp/lib64"
-- Installing: /tmp/bin/rdjpgcom
-- Set non-toolchain portion of runtime path of "/tmp/bin/rdjpgcom" to "/tmp/lib64"
-- Installing: /tmp/bin/wrjpgcom
-- Set non-toolchain portion of runtime path of "/tmp/bin/wrjpgcom" to "/tmp/lib64" Thinking about this further, perhaps the |
Would it make sense to split it based on directories, that is to have |
Allows users to choose specific components for installation. The names of the components are based on the directory in which they will be installed. Helps: libvips/libvips#3931.
e24359e
to
69e3338
Compare
Good idea! I've updated the PR to incorporate this. |
Further thoughts: It doesn't make much sense to install the executables without the shared libraries, because if libjpeg-turbo is built with |
Allows users to choose specific components for installation. The names of the components are based on the directory in which they will be installed.
Helps: libvips/libvips#3931.
Context: #338 (comment).