Skip to content

Confusing COPYING behavior in ConfigurePackaging.cmake #150

Description

@ckreibich

The ConfigurePackaging.cmake script seems to contain an implicit requirement of a COPYING.txt file that can trip people up because it's not request or visible outside of that file:

=== STDERR ===                                                                                                           
  CMake Error at /opt/homebrew/share/cmake/Modules/CPack.cmake:688 (message):                                              
    CPack license resource file:                                                                                           
    "/Users/yacin.nadji/zeek/zeek-master/var/lib/zkg/testing/tls-injection/clones/tls-injection/build/COPYING.txt"         
    could not be found.                                                                                                    
  Call Stack (most recent call first):                                                                                     
    /opt/homebrew/share/cmake/Modules/CPack.cmake:693 (cpack_check_file_exists)                                            
    /Users/yacin.nadji/zeek/zeek-master/share/zeek/cmake/ConfigurePackaging.cmake:258 (include)                            
    CMakeLists.txt:48 (ConfigurePackaging)                                                                                 

People commonly have this in their setup via this snippet that our plugin template includes.

@ynadji fyi!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions