[cmake-developers] [CMake 0013599]: package per component generation doesn't work
Mantis Bug Tracker
mantis at public.kitware.com
Mon Oct 22 15:27:08 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13599
======================================================================
Reported By: sutasu
Assigned To:
======================================================================
Project: CMake
Issue ID: 13599
Category: CMake
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2012-10-22 21:27 WAST
Last Modified: 2012-10-22 21:27 WAST
======================================================================
Summary: package per component generation doesn't work
Description:
According to documentation the default behavior for following code is producing
2 packages files (one per component) but it makes only one.
Steps to Reproduce:
cmake_minimum_required(VERSION 2.8)
file(WRITE file.txt.in "hi")
configure_file(file.txt.in ${CMAKE_CURRENT_BINARY_DIR}/file-runtime.txt)
configure_file(file.txt.in ${CMAKE_CURRENT_BINARY_DIR}/file-devel.txt)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/file-runtime.txt
DESTINATION bin COMPONENT Runtime)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/file-devel.txt
DESTINATION lib COMPONENT Development)
SET(CPACK_COMPONENTS_ALL Runtime Development)
include(CPack)
Additional Information:
> cmake ..
-- Building for: Visual Studio 8 2005
-- Check for working C compiler using: Visual Studio 8 2005
-- Check for working C compiler using: Visual Studio 8 2005 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 8 2005
-- Check for working CXX compiler using: Visual Studio 8 2005 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Projects/cmake_multiple_tst/build
> cpack -G ZIP
CPack: Create package using ZIP
CPack: Install projects
CPack: - Install project: Project
CPack: Create package
CPack: - package: C:/Projects/cmake_multiple_tst/build/Project-0.1.1-win32.zip
generated.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-10-22 21:27 sutasu New Issue
======================================================================
More information about the cmake-developers
mailing list