[Bug 257615] devel/cmake: CPack FreeBSD generator fails after upgrade to pkg-1.17.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Sep 21 10:29:56 BST 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257615
Adriaan de Groot <adridg at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|In Progress |Closed
Resolution|--- |FIXED
--- Comment #3 from Adriaan de Groot <adridg at freebsd.org> ---
Totally minimal CMakeLists.txt (creates a source file if needed!) to test this:
```
cmake_minimum_required(VERSION 3.21 FATAL_ERROR)
project(cpack-example VERSION 0.1 LANGUAGES C)
set(CPACK_PACKAGE_CONTACT "groot at kde.org")
set(CPACK_RPM_PACKAGE_LICENSE "GPLv2")
include(CPack)
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/hw.c)
file(WRITE ${CMAKE_SOURCE_DIR}/hw.c "int main() { return 0; }")
endif()
add_executable(hw hw.c)
install(TARGETS hw DESTINATION bin)
```
And it now creates a .pkg which installs and deinstalls successfully.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the kde-freebsd
mailing list