Skip to content

FindJava: Add Java_JAR_EXECUTABLE to a component: Development

All discovered executables were placed in a component, except for 'jar'. This forced the use of find_package(Java) without any component specification. This commit adds 'jar' to the 'Development' component, because that's what it's used for.

If it's intentional that 'jar' is not in the 'Development' component then I believe it should either reside in another component (like JarSigner which has a component for itself), or it should be documented why it's not in a component. Currently I believe it's an oversight, hence this patch.

Edited by Marc Chevrier

Merge request reports