The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15516 
====================================================================== 
Reported By:                Dorian
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15516
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-04-16 04:12 EDT
Last Modified:              2015-04-16 04:12 EDT
====================================================================== 
Summary:                    Wix with CPACK_PROJECT_CONFIG_FILE = wrong file
name.
Description: 
CPACK_PACKAGE_VERSION_* variables set in CPACK_PROJECT_CONFIG_FILE are ignored
in output file name. It always gives me installer-name-0.1.1-win32.msi


Steps to Reproduce: 
Add

--- CMakeLists.txt ---

set(CPACK_PROJECT_CONFIG_FILE ${CMAKE_BINARY_DIR}/CPackOptions.cmake)

--- CMakeLists.txt end ---

---  ${CMAKE_BINARY_DIR}/CPackOptions.cmake (generated by configure_file):

SET(CPACK_PACKAGE_VERSION 1.9.50.65535)
SET(CPACK_PACKAGE_VERSION_MAJOR 1)
SET(CPACK_PACKAGE_VERSION_MINOR 9)
SET(CPACK_PACKAGE_VERSION_PATCH 50)

message("CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}")
message("CPACK_PACKAGE_VERSION_MAJOR ${CPACK_PACKAGE_VERSION_MAJOR}")
message("CPACK_PACKAGE_VERSION_MINOR ${CPACK_PACKAGE_VERSION_MINOR}")
message("CPACK_PACKAGE_VERSION_PATCH ${CPACK_PACKAGE_VERSION_PATCH}")

--- CPackOptions.cmake end

Pack message output:

...
4>  CPACK_PACKAGE_VERSION 1.9.50.65535
4>  CPACK_PACKAGE_VERSION_MAJOR 1
4>  CPACK_PACKAGE_VERSION_MINOR 9
4>  CPACK_PACKAGE_VERSION_PATCH 50
...
4>  CPack: - package: D:/proj-build/proj-name-0.1.1-win32.msi generated.


Additional Information: 
Note that version is displayed ok in ControlPanel->Add/Remove Programs, so it
seems that only filename is a problem
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-04-16 04:12 Dorian         New Issue                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to