Package: cmake-data
Version: 3.31.6-2
Severity: normal

Dear Maintainer,

When one defines a target with the built-in command add_executable() or 
add_library(), a target property named SOURCES that lists the related source 
files, is defined. The add_jar() command does not define it.

There is a simple workaround: use ->set_property(TARGET <jar target name> 
PROPERTY SOURCES "${Java_src}")<- with the same list of filenames used in the 
SOURCES argument of add_jar command. The fix is doing that directly in the 
add_jar command.
(Or perhaps with the similar command target_sources().)

I discovered this when I tried to make a real source package, as Automake does, 
by enumerating the defined targets and theirs respective source files.

-- System Information:
Debian Release: 13.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.85+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information

Reply via email to