[CMake] CPack and mswindows MAX_PATH for temporary work
Mathieu Schroeter
schroeter at epsitec.ch
Mon Jun 15 11:13:19 EDT 2015
Hello,
Is MAX_PATH a problem with CPack? I received the following error when
the destination is longer than MAX_PATH (here, 264 chars):
CPack Error: Problem copying file:
S:/devel/bootstrap-windev/sysroot/toolchain/var/tmp/wpkg/source/epsitec+lydia/usr/share/epsitec/lydia/cache/data/Lydia.Arc.Components/lydia/electrum-arc/components/forms/options/CheckboxField/CheckboxField.styles.js
->
S:/devel/bootstrap-windev/sysroot/toolchain/var/tmp/wpkg-8424/build/_CPack_Packages/win64-Source/TGZ/epsitec+lydia_0.1.0.0////usr/share/epsitec/lydia/cache/data/Lydia.Arc.Components/lydia/electrum-arc/components/forms/options/CheckboxField/CheckboxField.styles.js
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "epsitec+lydia_0.1.0.0")
include(CPack)
If I reduce the longer, it works fine. I've just looked a bit in the
sources. It seems that it uses UNC paths then I don't understand.
I'm using CMake 3.2.3.
Thanks
Regards,
Mathieu Schroeter
More information about the CMake
mailing list