CPack naming not working for FreeBSD
I am having problem with CPack in that the output file does not get the right name for FreeBSD
This is the CMake command line
cmake -DBUILD_FREEBSD=1 -DOS_DIST=freebsd -DCMAKE_BUILD_TYPE=RELEASE ../oorexxSVN
In CMakeLists.txt I have inter alia the following variables set, listed here for debug purposes:
-- Building for FreeBSD
-- CPACK_FREEBSD_PACKAGE_NAME oorexx
-- CPACK_PACKAGE_RELEASE 12340
-- CPACK_PACKAGE_FILE_NAME oorexx-5.0.0-12340.freebsd.amd64
-- Configuring done
I have attached the complete CMakeLists.txt
However, after a cpack ./ what is built is oorexx-5.0.0.pkg, not ooRexx-5.0.0-12340.freebsd.amd64.pkg as I would have assumed.
These are the folders and files created by the cpack command:
_CPack_Packages
└── FreeBSD
└── FREEBSD
├── ooRexx-5.0.0-12340.freebsd.amd64
│ ├── +MANIFEST
│ └── usr
│ └── local
└── oorexx-5.0.0.pkg
CMake was built from source
cpack -version -> cpack version 3.22.1
uname -v -a ->
FreeBSD osboxes 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
Am I missing some settings or are there definitions missing here?
I have attached some further file fyi.cmake_install.cmake
Edited by Brad King