<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
I have problem running cpack on my Windows machine. It worked before but suddelnly it stopped working.<BR> <BR>I get this error:<BR> <BR><em><font style="font-size: 8pt;" size="1">C:\JenkinsCI\jobs\te\workspace>cpack -G ZIP <br>CPack: Create package using ZIP<br>CPack: Install projects<br>CPack: - Run preinstall target for: Pack<br>CPack: - Install project: Pack<br>CMake Error at C:/JenkinsCI/jobs/te/workspace/src/cmake_install.cmake:31 (FILE):<br> file cannot create directory:<br> C:/JenkinsCI/jobs/te/workspace/_CPack_Packages/win32/ZIP/libhello-1.0.9<br> /lib. Maybe need administrative privileges.<br>Call Stack (most recent call first):<br> C:/JenkinsCI/jobs/te/workspace/cmake_install.cmake:32 (INCLUDE)<br><br><br></font></em><br><BR>I have search the net but i cant seem to find a solution. I would really be glad if someone could tell me what to do.<BR> <BR>here is my files<BR> <BR># Requirements<br>cmake_minimum_required(VERSION 2.8)<BR># Project<br>project (PACK)<br>file (STRINGS "doc/version.txt" VERSION_NUMBER)<BR>add_subdirectory(src)<br>add_subdirectory(include)<br>add_subdirectory(test)<br>add_subdirectory(doc)<BR><br># Package<br>#set(CPACK_SET_DESTDIR "ON") <br>set(CPACK_SET_DESTDIR "packages2")<br>set(CPACK_GENERATOR "ZIP")<br>set(CPACK_PACKAGE_FILE_NAME "libhello-${VERSION_NUMBER}")<BR>include(CPack)<BR> <BR>--------------------------------------<BR> <BR>include_directories (${PACK_SOURCE_DIR}/include) <BR>add_library(hello hello.c)<BR>install (TARGETS hello DESTINATION lib)<BR> <BR> <BR>/M<BR> <BR> <BR> <BR> <BR>                                            </div></body>
</html>