See also: - https://cmake.org/cmake/help/v3.4/module/CPack.html - https://cmake.org/cmake/help/v3.4/module/CPackRPM.html - https://cmake.org/cmake/help/v3.4/module/CPackDeb.html
Solaris 10 is too old for POSIX.2008, thus wcsdup() is missing