CPack Error: Problem creating temporary directory
If I try to package a build with a cmake custom target or with cpack directly, an error occurs complaining that a temporary directory could not be created. The problem it pretty obvious: CPack seems to concatenate a second path to the default one or the one specified via the -B argument, which results in an invalid Windows path:
C:\Daten\ArangoDB\arangodb\build>cpack -G NSIS64 -C Release -B C:/Daten/ArangoDB/arangodb/build/cpack_tmp
CPack: Create package using NSIS64
CPack: Install projects
CPack: - Install project: arangodb3
CPack Error: Problem creating temporary directory: C:/Daten/ArangoDB/arangodb/build/cpack_tmp/_CPack_Packages/win64/NSIS64/ArangoDB3-3.3.devel-1_win64C:/Program Files/arangodb3
CPack Error: Error when generating package: ArangoDB3
The two concatenated paths are:
- C:/Daten/ArangoDB/arangodb/build/cpack_tmp/_CPack_Packages/win64/NSIS64/ArangoDB3-3.3.devel-1_win64
- C:/Program Files/arangodb3
Why does it do that however? Please advise how to fix the problem. CMake file is this:
https://github.com/arangodb/arangodb/blob/devel/cmake/packages/nsis.cmake
cmake version 3.10.0 (installed via Chocolatey)
Windows 10 64bit