Your post solved it!

I use an environment variable for project name, which is set only for the 
process running CMake, not CPack. So when i substitute this variable with a 
string, it is ok.

Thank you!

Karl


________________________________
From: David Cole [mailto:david.c...@kitware.com]
Sent: 13. august 2009 17:38
To: Karl Reite
Cc: cmake@cmake.org
Subject: Re: [CMake] CPack Error: Not enough items on list: 
CPACK_INSTALL_CMAKE_PROJECTS

>From CPack.cmake :
cpack_set_if_not_set(CPACK_INSTALL_CMAKE_PROJECTS
  "${CMAKE_BINARY_DIR};${CMAKE_PROJECT_NAME};ALL;/")

Looks like you do not have a "PROJECT" statement in your top level 
CMakeLists.txt file. If you did, the second component of 
CPACK_INSTALL_CMAKE_PROJECTS would not be the empty string.....


HTH,
David


On Thu, Aug 13, 2009 at 8:50 AM, Karl Reite 
<karl.j.re...@sintef.no<mailto:karl.j.re...@sintef.no>> wrote:
Hi,

My problem is that I can not get CPack to create an installer for my project. I 
have done this before with success, but this time I can not figure out the 
problem.

I work in Visual Studio 2005 SP1. The project compiles without errors. When i 
try to build the "PACKAGE" project (this calls CPack), I get the error:

CPack Error: Not enough items on list: CPACK_INSTALL_CMAKE_PROJECTS. 
CPACK_INSTALL_CMAKE_PROJECTS should hold quadruplet of install directory, 
install project name, install component, and install subdirectory.

I have tried to remove all install commands and CPack commands except 
"INCLUDE(CPack)", but still the same error. I notice that the file 
CPackConfig.cmake contains the line:
SET(CPACK_INSTALL_CMAKE_PROJECTS 
"C:/_work/_SSR/IPR/projects/!Demo/build/dynamicvis;;ALL;/")

But the file CpackSourceConfig.cmake contains the coresponding line
SET(CPACK_INSTALL_CMAKE_PROJECTS "")

I am hoping someone may have a clue to what is causing this.

Thanks,
Karl

_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to