[cmake-developers] trouble with running cpack --help during cmake step

Bill Hoffman bill.hoffman at kitware.com
Tue Jun 26 17:13:50 EDT 2012


So, this code here:

2a34b579 Tests/CMakeLists.txt  (Eric NOULARD                  2012-03-30 
17:07:06 +0200  720)     # Analyze 'cpack --help' output for list of 
available generators:
2a34b579 Tests/CMakeLists.txt  (Eric NOULARD                  2012-03-30 
17:07:06 +0200  721)     execute_process(COMMAND ${CMAKE_CPACK_COMMAND} 
--help


The trouble is the cpack that is being tested is the one from the build 
tree.  If you have a very old CMake build tree, and you do a git pull 
and gets lots of new cmake code.  Then when you re-run cmake on the 
build tree, the cpack --help might crash.   I am not sure how this works 
on a fresh build tree either as cpack won't even exist.

-Bill





-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573




More information about the cmake-developers mailing list