[cmake-developers] New CPack test failing on OS X and Windows 7

Bill Hoffman bill.hoffman at kitware.com
Mon Dec 13 09:59:43 EST 2010


On 12/13/2010 9:52 AM, Bill Hoffman wrote:
> On 12/12/2010 1:22 PM, Eric Noulard wrote:
>
>>
>> Thank you.
>> No more clue with that list now, beside the fact that there is no ZIP.
>> May be my cpack execution call is buggy.
>>
>> With the extra trace now in place I should see if this is the case.
>>
> Eric, should we roll back the change? Lots of tests are still failing....
>
> -Bill
>

OK, I see the problem:

Running test command: "C:/Dashboards/My 
Tests/CMake-vs10/bin/Release/cmake.exe" 
"-DCPackComponentsForAll_BINARY_DIR:PATH=C:/Dashboards/My 
Tests/CMake-vs10/Tests/CPackComponentsForAll/buildZIP-NoComponent" 
"-DCPackCommand=C:/Dashboards/My Tests/CMake-vs10/bin/cpack" 
"-DCPackGen=ZIP" "-DCPackComponentWay=default" "-P" "C:/Dashboards/My 
Tests/CMake/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake"
Test command failed: C:/Dashboards/My Tests/CMake-vs10/bin/Release/cmake.exe

This is not where cpack is:

"C:/Dashboards/My Tests/CMake-vs10/bin/cpack"


I think this change might fix it:
(I am trying now)

     # This variable is set by cmake, however to
     # test cmake we want to make sure that
     # the ctest from this cmake is used for testing
     # and not the ctest from the cmake building and testing
     # cmake.
     SET(CMAKE_CTEST_COMMAND "${CMake_BIN_DIR}/${CMAKE_CFG_INTDIR}/ctest")
     SET(CMAKE_CMAKE_COMMAND "${CMake_BIN_DIR}/${CMAKE_CFG_INTDIR}/cmake")
     SET(CMAKE_CPACK_COMMAND "${CMake_BIN_DIR}/${CMAKE_CFG_INTDIR}/cpack")


-Bill



More information about the cmake-developers mailing list