https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257615

Adriaan de Groot <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|In Progress                 |Closed
         Resolution|---                         |FIXED

--- Comment #3 from Adriaan de Groot <[email protected]> ---
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 "[email protected]")
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.

Reply via email to