[CMake] file cannot create direc

Micke ..... nero2000 at hotmail.com
Sat Jul 21 13:46:29 EDT 2012





I have problem running cpack on my Windows machine. It worked before but suddelnly it stopped working. I get this error: C:\JenkinsCI\jobs\te\workspace>cpack -G ZIP 
CPack: Create package using ZIP
CPack: Install projects
CPack: - Run preinstall target for: Pack
CPack: - Install project: Pack
CMake Error at C:/JenkinsCI/jobs/te/workspace/src/cmake_install.cmake:31 (FILE):
  file cannot create directory:
  C:/JenkinsCI/jobs/te/workspace/_CPack_Packages/win32/ZIP/libhello-1.0.9
  /lib.  Maybe need administrative privileges.
Call Stack (most recent call first):
  C:/JenkinsCI/jobs/te/workspace/cmake_install.cmake:32 (INCLUDE)



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. here is my files # Requirements
cmake_minimum_required(VERSION 2.8)# Project
project (PACK)
file (STRINGS "doc/version.txt" VERSION_NUMBER)add_subdirectory(src)
add_subdirectory(include)
add_subdirectory(test)
add_subdirectory(doc)
# Package
#set(CPACK_SET_DESTDIR "ON") 
set(CPACK_SET_DESTDIR "packages2")
set(CPACK_GENERATOR "ZIP")
set(CPACK_PACKAGE_FILE_NAME "libhello-${VERSION_NUMBER}")include(CPack) -------------------------------------- include_directories (${PACK_SOURCE_DIR}/include) add_library(hello hello.c)install (TARGETS hello DESTINATION lib)  /M     		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120721/57752b14/attachment.htm>


More information about the CMake mailing list