CMake 4.5 warning about "install_prep/" targets #397

issue hebasto opened this issue on November 15, 2026
  1. hebasto commented at 8:55 PM on November 15, 2026: member

    Configuring with CMake 4.5.0 emits a new author warning:

    $ cmake -B build -G "Unix Makefiles"
    -- The CXX compiler identification is GNU 16.2.1
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/lib64/ccache/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
    -- Found Threads: TRUE
    -- Performing Test HAVE_PTHREAD_GETNAME_NP
    -- Performing Test HAVE_PTHREAD_GETNAME_NP - Success
    -- Performing Test HAVE_PTHREAD_SETNAME_NP_3ARG
    -- Performing Test HAVE_PTHREAD_SETNAME_NP_3ARG - Failed
    -- Performing Test HAVE_PTHREAD_THREADID_NP
    -- Performing Test HAVE_PTHREAD_THREADID_NP - Failed
    -- Performing Test HAVE_PTHREAD_GETTHREADID_NP
    -- Performing Test HAVE_PTHREAD_GETTHREADID_NP - Failed
    -- Configuring done (0.4s)
    CMake Warning (author) at CMakeLists.txt:187 (add_library):
      Target "multiprocess" installs file
    
        /home/hebasto/dev/libmultiprocess/build/include/mp/proxy.capnp.h
    
      which is generated but is not the unique output of a build target, so
      "install_prep/" targets cannot build it with this generator.  They build
      target "multiprocess" instead, which must depend on the target that
      produces the file (for example via add_dependencies).
    This warning is for project developers.  Use -Wno-author to suppress it.
    
    -- Generating done (0.0s)
    -- Build files have been written to: /home/hebasto/dev/libmultiprocess/build
    

    CMake 4.5 introduced "install_prep/*" convenience targets, which are generated by default.


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-11-17 18:30 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me