CPack source packaging not available on macOS
Summary
Source packaging with cpack was introduced by mr !128 (merged) but does not work on macOS.
This is because, unlike on windows or linux, we do not use cpack to package applications for this platform.
The following discussion from !128 (merged) should be addressed:
-
@eharquel started a discussion: (+3 comments) You need to add
include(CPack)
somewhere for macos otherwisepackage_source
target does not exist.
Steps to reproduce
- Be on macOS
- Select a project to build.
-
CMake . && ninja package_source
➡ won't work because the target is not generated.
Dev environment
- OS: macOS
- CMake version: any
- Compiler: clang
- Build type: any