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                    
======================================================================

-- 

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