[cmake-developers] [CMake 0015483]: CMAKE_MAKE_PROGRAM not managed correctly with CMake/CPack

Mantis Bug Tracker mantis at public.kitware.com
Tue Mar 31 09:40:44 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15483 
====================================================================== 
Reported By:                marc.chevrier
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15483
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-03-31 09:40 EDT
Last Modified:              2015-03-31 09:40 EDT
====================================================================== 
Summary:                    CMAKE_MAKE_PROGRAM not managed correctly with
CMake/CPack
Description: 
CMAKE_MAKE_PROGRAM is not propagated from CMake to CPack so preventing correct
behavior if CMAKE_MAKE_PROGRAM refers to a program not the PATH

This problem does not occur with all generators but is perfectly reproductible
with "NMake Makefiles JOM"

Steps to Reproduce: 
* jom.exe directory MUST NOT in PATH environment variable 
* generation step: cmake -G "NMake Makefiles JOM"
-DCMAKE_MAKE_PROGRAM=<path-to-jom-tool> <src>
* launch compilation: cmake --build . --target package

Result:
jom 1.0.14 - empower your cores
                                                           
Run CPack packaging tool...
CPack: Create package using TGZ
CPack: Install projects
CPack: - Run preinstall target for: CMAKE_CPACK_BUG
CPack Error: Problem running install command: "jom" "preinstall"
Please check D:/tests/cmake/build/_CPack_Packages/win64/TGZ/PreinstallOutput.log
for errors               
CPack Error: Error when generating package: CMAKE_CPACK_BUG
jom: D:\tests\cmake\build\Makefile [package] Error 1

Additional Information: 
attached is the CMakeLists.txt used to show problem.

I try to add to CPackConfig.cmake to set variable CPACK_CMAKE_MAKE_PROGRAM with
correct value but problem is not solved.

Correct behavior expected : CMake/CPack must managed correctly and automatically
variable CMAKE_MAKE_PROGRAM.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-03-31 09:40 marc.chevrier  New Issue                                    
2015-03-31 09:40 marc.chevrier  File Added: CMakeLists.txt                    
======================================================================



More information about the cmake-developers mailing list