cmake Xcode generator failed with multiple target for manpage
## Summary For some unknown reason, the doc directory's CMakeLists.txt file has two targets, "docs" and "manpages", and all the man pages are in both of those targets. For some other unknown reason, "the Xcode "new build system"" can't handle that, even though Make and Ninja and Visual Studio appear to have No Problem with it. It is not clear why this is done. ## Steps to reproduce - create Build directory at top level of wireshark depot - run "cmake -G xcode ../" ## What is the current bug behavior? Xcode project file should be generated. ## What is the expected correct behavior? Error: ``` CMake Error in doc/CMakeLists.txt: The custom command generating /Users/AnawatChankhunthod/Lucid/LucidDepot/wireshark/XBuild/doc/wireshark.1 is attached to multiple targets: docs manpages but none of these is a common dependency of the other(s). This is not allowed by the Xcode "new build system".` ``` ## Sample capture file (If possible attach a sample capture file, not screenshot of dissection, showing this issue. You can do so by using the paper clip button in the editor menu bar.) ## Relevant logs and/or screenshots ``` cmake -G Xcode ../ -- Generating build using CMake 3.21.4 -- Using "Xcode" generator (multi-config) -- LTO/IPO is not enabled -- V: 4.0.1, MaV: 4, MiV: 0, PL: 1, EV: . -- Linker flags: -- Could NOT find LIBSSH (missing: LIBSSH_LIBRARIES LIBSSH_INCLUDE_DIRS LIBSSH_VERSION) (Required is at least version "0.6") -- Checking for one of the modules 'libpcap' -- Could NOT find Sparkle: Found unsuitable version "1", but required is at least "2" (found SPARKLE_INCLUDE_DIR-NOTFOUND) -- Could NOT find MaxMindDB (missing: MAXMINDDB_LIBRARY MAXMINDDB_INCLUDE_DIR) -- Could NOT find SMI (missing: SMI_LIBRARY SMI_INCLUDE_DIR) -- Checking for one of the modules 'krb5;mit-krb5;heimdal-krb5' -- Could NOT find Minizip (missing: MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR) (found version "") -- Could NOT find BROTLI (missing: BROTLIDEC_LIBRARY BROTLI_INCLUDE_DIR) -- Checking for one of the modules 'lz4;liblz4' -- Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR) -- Could NOT find SNAPPY (missing: SNAPPY_LIBRARY SNAPPY_INCLUDE_DIR) -- Checking for one of the modules 'libzstd' -- Could NOT find ZSTD: Found unsuitable version "", but required is at least "1.0.0" (found ZSTD_LIBRARY-NOTFOUND) -- Checking for one of the modules 'lua5.2;lua-5.2;lua52;lua5.1;lua-5.1;lua51' -- Checking for one of the modules 'lua<=5.2.99' -- Could NOT find LUA (missing: LUA_VERSION_NUM) (Required is at least version "5.1") -- Could NOT find SBC (missing: SBC_LIBRARY SBC_INCLUDE_DIR) -- Checking for one of the modules 'spandsp' -- Could NOT find SPANDSP (missing: SPANDSP_LIBRARY SPANDSP_INCLUDE_DIR) -- Could NOT find BCG729 (missing: BCG729_LIBRARY BCG729_INCLUDE_DIR) -- Checking for one of the modules 'libilbc' -- Could NOT find ILBC (missing: ILBC_LIBRARY ILBC_INCLUDE_DIR) -- Checking for one of the modules 'opus' -- Could NOT find OPUS (missing: OPUS_LIBRARY OPUS_INCLUDE_DIR) -- Could NOT find DOXYGEN (missing: DOXYGEN_EXECUTABLE) -- Could NOT find SpeexDSP (missing: SPEEXDSP_LIBRARY SPEEXDSP_INCLUDE_DIR) (found version "") -- Building for Mac OS X/OS X/macOS 10.13 using SDK /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -- SSE4.2 compiler flag: -msse4.2 -- C-Flags: -fvisibility=hidden -Qunused-arguments -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wheader-guard -Wcomma -Wshorten-64-to-32 -Wredundant-decls -Wframe-larger-than=32768 -Wunused-const-variable -Wshadow -Wold-style-definition -Wstrict-prototypes -Werror=implicit -Wno-pointer-sign -fmacro-prefix-map=/Users/AnawatChankhunthod/Lucid/LucidDepot/wireshark/= -fmacro-prefix-map=/Users/AnawatChankhunthod/Lucid/LucidDepot/wireshark/XBuild/= -fmacro-prefix-map=../= -- CXX-Flags: -Qunused-arguments -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wheader-guard -Wcomma -Wshorten-64-to-32 -Wredundant-decls -Wframe-larger-than=32768 -Wextra-semi -fmacro-prefix-map=/Users/AnawatChankhunthod/Lucid/LucidDepot/wireshark/= -fmacro-prefix-map=/Users/AnawatChankhunthod/Lucid/LucidDepot/wireshark/XBuild/= -fmacro-prefix-map=../= -- Warnings as errors disabled -- The following OPTIONAL packages have been found: * Git * GMODULE2 * Perl * Gettext * PCAP * Qt5Network (required version >= 5.15.6) * Qt5Multimedia * GNUTLS (required version >= 3.5.8) * KERBEROS * ZLIB * NGHTTP2 (required version >= 1.11.0), HTTP/2 C library and tools, <https: nghttp2.org=""> Header decompression in HTTP2 * LibXml2 * Asciidoctor (required version >= 1.5) * XSLTPROC -- The following REQUIRED packages have been found: * GLIB2 (required version >= 2.50.0) * GTHREAD2 * GCRYPT (required version >= 1.8.0) * CARES (required version >= 1.13.0), Library for asynchronous DNS requests, <https: c-ares.org=""/> DNS name resolution for captures * LEX * PCRE2, Regular expression pattern matching using the same syntax and semantics as Perl 5, <https: www.pcre.org=""> Support for regular expressions * Python3 (required version >= 3.6) * M * Qt5Core * Qt5Gui * Qt5LinguistTools * Qt5PrintSupport * Qt5Widgets * Qt5Concurrent -- The following OPTIONAL packages have not been found: * LIBSSH (required version >= 0.6), Library for implementing SSH clients, <https: www.libssh.org=""/> extcap remote SSH interfaces (sshdump, ciscodump, wifidump) * Sparkle (required version >= 2) * MaxMindDB, C library for the MaxMind DB file format, <https: github.com="" maxmind="" libmaxminddb=""> Support for GeoIP lookup * SMI, Library to access SMI management information, <https: www.ibr.cs.tu-bs.de="" projects="" libsmi=""/> Support MIB and PIB parsing and OID resolution * Minizip, Mini zip and unzip based on zlib, <https: github.com="" madler="" zlib=""> Support for profiles import/export * BROTLI * LZ4, LZ4 is a fast lossless compression algorithm, <http: www.lz4.org=""> LZ4 decompression in CQL and Kafka dissectors, read compressed capture files * SNAPPY, A fast compressor/decompressor from Google, <https: google.github.io="" snappy=""/> Snappy decompression in CQL and Kafka dissectors * ZSTD (required version >= 1.0.0), A compressor/decompressor from Facebook providing better compression than Snappy at a cost of speed, <https: facebook.github.io="" zstd=""/> Zstd decompression in Kafka dissector, read compressed capture files * LUA (required version >= 5.1) * SBC, Bluetooth low-complexity, subband codec (SBC) decoder, <https: git.kernel.org="" pub="" scm="" bluetooth="" sbc.git=""> Support for playing SBC codec in RTP player * SPANDSP, a library of many DSP functions for telephony, <https: www.soft-switch.org=""> Support for G.722 and G.726 codecs in RTP player * BCG729, G.729 decoder, <https: www.linphone.org="" technical-corner="" bcg729=""> Support for G.729 codec in RTP player * ILBC, iLBC decoder, <https: github.com="" timothygu="" libilbc=""> Support for iLBC codec in RTP player * OPUS, opus decoder, <https: opus-codec.org=""/> Support for opus codec in RTP player * DOXYGEN * SpeexDSP, SpeexDSP is a patent-free, Open Source/Free Software DSP library, <https: www.speex.org=""/> RTP audio resampling -- Configuring done -- Generating done CMake Error in doc/CMakeLists.txt: The custom command generating /Users/AnawatChankhunthod/Lucid/LucidDepot/wireshark/XBuild/doc/wireshark.1 is attached to multiple targets: docs manpages but none of these is a common dependency of the other(s). This is not allowed by the Xcode "new build system".` ``` ## Build information ``` (In Wireshark, select Help->About Wireshark from the main menu and use the button "Copy To Clipboard". Please paste the complete output here. Or from the command line, run `tshark -v` or `wireshark -v`) ```
issue