Hi,<div><br></div><div>The CPackComponents test fails on master where there is a space in the source tree. Here I think the trace:</div><div><br></div><div>$ ctest -V -R 'CPackComponents$'</div><div><br></div><div>

<div>==================================================================</div><div></div></div><div><div><div>UpdateCTestConfiguration  from :/home/despre_n/tmp/cmake space/_build/DartConfiguration.tcl</div><div>Parse Config file:/home/despre_n/tmp/cmake space/_build/DartConfiguration.tcl</div>

<div> Add coverage exclude regular expressions.</div><div> Add coverage exclude: XCode</div><div> Add coverage exclude: Kdevelop</div><div> Add coverage exclude: /Source/(cm|kw)sys/</div><div> Add coverage exclude: /CMakeFiles/CMakeTmp/</div>

<div> Add coverage exclude: [A-Za-z]./[Qq]t/qt-.+-opensource-src</div><div>UpdateCTestConfiguration  from :/home/despre_n/tmp/cmake space/_build/DartConfiguration.tcl</div><div>Parse Config file:/home/despre_n/tmp/cmake space/_build/DartConfiguration.tcl</div>

<div>Test project /home/despre_n/tmp/cmake space/_build</div><div>Constructing a list of tests</div><div>Guessing configuration NoConfig</div><div>Done constructing a list of tests</div><div>Checking test dependency graph...</div>

<div>Checking test dependency graph end</div><div>test 89</div><div>    Start 89: CPackComponents</div><div><br></div><div>89: Test command: /home/despre_n/tmp/cmake\ space/_build/bin/ctest "--build-and-test" "/home/despre_n/tmp/cmake space/Tests/CPackComponents" "/home/despre_n/tmp/cmake space/_build/Tests/CPackComponents" "--build-generator" "Unix Makefiles" "--build-project" "CPackComponents" "--build-makeprogram" "/usr/bin/make" "--build-two-config" "--build-target" "package" "--build-options" "-DCPACK_BINARY_DEB:BOOL=ON" "-DCPACK_BINARY_RPM:BOOL=ON" "-DCPACK_BINARY_NSIS:BOOL=ON" "--graphviz=CPackComponents.dot" "--test-command" "/home/despre_n/tmp/cmake space/_build/bin/cmake" "-DCPackComponents_BINARY_DIR:PATH=/home/despre_n/tmp/cmake space/_build/Tests/CPackComponents" "-P" "/home/despre_n/tmp/cmake space/Tests/CPackComponents/VerifyResult.cmake"</div>

<div>89: Test timeout computed to be: 1500</div><div>89: Generate graphviz: /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot</div><div>89: Writing /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot.mylib...</div>

<div>89: Writing /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot.mylibapp...</div><div>89: Writing /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot.mylib.dependers...</div>

<div>89: Writing /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot.mylibapp.dependers...</div><div>89: Writing /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot...</div>

<div>89: Generate graphviz: /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot</div><div>89: Writing /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot.mylib...</div>

<div>89: Writing /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot.mylibapp...</div><div>89: Writing /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot.mylib.dependers...</div>

<div>89: Writing /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot.mylibapp.dependers...</div><div>89: Writing /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackComponents.dot...</div>

<div>89: Internal cmake changing into directory: /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents</div><div>89: ======== CMake output     ======</div><div>89: Configuring</div><div>89: Configuring done</div><div>

89: Generating</div><div>89: Generating done</div><div>89: Build files have been written to: /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents</div><div>89: Configuring</div><div>89: Configuring done</div><div>
89: Generating</div>
<div>89: Generating done</div><div>89: Build files have been written to: /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents</div><div>89: ======== End CMake output ======</div><div>89: Change Dir: /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents</div>

<div>89: </div><div>89: Run Clean Command:/usr/bin/make "clean"</div><div>89: </div><div>89: Run Build Command:/usr/bin/make "package"</div><div>89: [ 50%] Building CXX object CMakeFiles/mylib.dir/mylib.cpp.o</div>

<div>89: Linking CXX static library libmylib.a</div><div>89: [ 50%] Built target mylib</div><div>89: [100%] Building CXX object CMakeFiles/mylibapp.dir/mylibapp.cpp.o</div><div>89: Linking CXX executable mylibapp</div><div>

89: [100%] Built target mylibapp</div><div>89: Run CPack packaging tool...</div><div>89: CMake Warning (dev) at /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackConfig.cmake:54 (SET):</div><div>89:   Syntax error in cmake code at</div>

<div>89: </div><div>89:     /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/CPackConfig.cmake:54</div><div>89: </div><div>89:   when parsing string</div><div>89: </div><div>89:     C:\Program Files\CMake Tests Install Root</div>

<div>89: </div><div>89:   Invalid escape sequence \P</div><div>89: </div><div>89:   Policy CMP0010 is not set: Bad variable reference syntax is an error.  Run</div><div>89:   "cmake --help-policy CMP0010" for policy details.  Use the cmake_policy</div>

<div>89:   command to set the policy and suppress this warning.</div><div>89: This warning is for project developers.  Use -Wno-dev to suppress it.</div><div>89: </div><div>89: CPack: Create package using DEB</div><div>89: CPack: Install projects</div>

<div>89: CPack: - Run preinstall target for: CPackComponents</div><div>89: CPack: - Install project: CPackComponents</div><div>89: CPack: Create package</div><div>89: CPack: - package: /home/despre_n/tmp/cmake space/_build/Tests/CPackComponents/MyLib-1.0.0-Linux.deb generated.</div>

<div>89: CPack: Create package using RPM</div><div>89: CPack: Install projects</div><div>89: CPack: - Run preinstall target for: CPackComponents</div><div>89: CPack: - Install project: CPackComponents</div><div>89: CPack: Create package</div>

<div>89: CMake Error at /home/despre_n/tmp/cmake space/Modules/CPackRPM.cmake:298 (MESSAGE):</div><div>89:   /usr/bin/rpmbuild can't handle paths with spaces, use a build directory</div><div>89:   without spaces for building RPMs.</div>

<div>89: </div><div>89: </div><div>89: CPack Error: Error while execution CPackRPM.cmake</div><div>89: CPack Error: Problem compressing the directory</div><div>89: CPack Error: Error when generating package: MyLib</div><div>

89: make: *** [package] Error 1</div><div>1/1 Test #89: CPackComponents ..................***Failed    3.31 sec</div><div><br></div><div>0% tests passed, 1 tests failed out of 1</div><div><br></div><div>Total Test time (real) =   4.31 sec</div>

<div><br></div><div>The following tests FAILED:</div><div><span class="Apple-tab-span" style="white-space:pre">   </span> 89 - CPackComponents (Failed)</div><div>Errors while running CTest</div></div><div>==================================================================</div>

</div><div></div><div><br></div><div>So I think the culprit is RPM.</div><div><br></div><div>Cheers,</div><div><br></div><div>-- <br>Nicolas Desprès<br><br>
</div>