No subject
Mon Aug 10 18:29:21 EDT 2009
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 CMakeLis=
ts.txt file. If you did, the second component of CPACK_INSTALL_CMAKE_PROJEC=
TS would not be the empty string.....
HTH,
David
On Thu, Aug 13, 2009 at 8:50 AM, Karl Reite <Karl.J.Reite at sintef.no<mailto:=
Karl.J.Reite at sintef.no>> wrote:
Hi,
My problem is that I can not get CPack to create an installer for my projec=
t. 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 "INCL=
UDE(CPack)", but still the same error. I notice that the file CPackConfig.c=
make contains the line:
SET(CPACK_INSTALL_CMAKE_PROJECTS "C:/_work/_SSR/IPR/projects/!Demo/build/dy=
namicvis;;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/opensour=
ce/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
--_000_CE02FD8B66D200479556811B662F40741CFA0871F2SINTEFEXMBX01_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16890" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN=20
class=3D119200608-14082009>Your post solved it! </SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN=20
class=3D119200608-14082009></SPAN></FONT> </DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN=20
class=3D119200608-14082009>I use an environment variable for project name, =
which=20
is set only for the process running CMake, not CPack. So when i substitute =
this=20
variable with a string, it is ok.</SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN=20
class=3D119200608-14082009></SPAN></FONT> </DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN=20
class=3D119200608-14082009>Thank you!</SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN=20
class=3D119200608-14082009></SPAN></FONT> </DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN=20
class=3D119200608-14082009>Karl</SPAN></FONT></DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN=20
class=3D119200608-14082009></SPAN></FONT> </DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN=20
class=3D119200608-14082009></SPAN></FONT> </DIV>
<DIV dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
</DIV>
<DIV dir=3Dltr align=3Dleft><FONT face=3DTahoma size=3D2><B>From:</B> David=
Cole=20
[mailto:david.cole at kitware.com] <BR><B>Sent:</B> 13. august 2009=20
17:38<BR><B>To:</B> Karl Reite<BR><B>Cc:</B> cmake at cmake.org<BR><B>Subject:=
</B>=20
Re: [CMake] CPack Error: Not enough items on list:=20
CPACK_INSTALL_CMAKE_PROJECTS<BR></FONT><BR></DIV>
<DIV></DIV>From CPack.cmake :
<DIV>
<DIV>cpack_set_if_not_set(CPACK_INSTALL_CMAKE_PROJECTS</DIV>
<DIV> "${CMAKE_BINARY_DIR};${CMAKE_PROJECT_NAME};ALL;/")</DIV>
<DIV><BR></DIV>
<DIV>Looks like you do not have a "PROJECT" statement in your top level=20
CMakeLists.txt file. If you did, the second component=20
of CPACK_INSTALL_CMAKE_PROJECTS would not be the empty string.....</DI=
V>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>HTH,</DIV>
<DIV>David</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV class=3Dgmail_quote>On Thu, Aug 13, 2009 at 8:50 AM, Karl Reite <SPAN=
=20
dir=3Dltr><<A=20
href=3D"mailto:Karl.J.Reite at sintef.no">Karl.J.Reite at sintef.no</A>></SPAN=
>=20
wrote:<BR>
<BLOCKQUOTE class=3Dgmail_quote=20
style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1p=
x solid">Hi,<BR><BR>My=20
problem is that I can not get CPack to create an installer for my project=
. I=20
have done this before with success, but this time I can not figure out th=
e=20
problem.<BR><BR>I work in Visual Studio 2005 SP1. The project compiles wi=
thout=20
errors. When i try to build the "PACKAGE" project (this calls CPack), I g=
et=20
the error:<BR><BR>CPack Error: Not enough items on list:=20
CPACK_INSTALL_CMAKE_PROJECTS. CPACK_INSTALL_CMAKE_PROJECTS should hold=20
quadruplet of install directory, install project name, install component,=
and=20
install subdirectory.<BR><BR>I have tried to remove all install commands =
and=20
CPack commands except "INCLUDE(CPack)", but still the same error. I notic=
e=20
that the file CPackConfig.cmake contains the=20
line:<BR>SET(CPACK_INSTALL_CMAKE_PROJECTS=20
"C:/_work/_SSR/IPR/projects/!Demo/build/dynamicvis;;ALL;/")<BR><BR>But th=
e=20
file CpackSourceConfig.cmake contains the coresponding=20
line<BR>SET(CPACK_INSTALL_CMAKE_PROJECTS "")<BR><BR>I am hoping someone m=
ay=20
have a clue to what is causing=20
this.<BR><BR>Thanks,<BR>Karl<BR><BR>_____________________________________=
__________<BR>Powered=20
by <A href=3D"http://www.kitware.com"=20
target=3D_blank>www.kitware.com</A><BR><BR>Visit other Kitware open-sourc=
e=20
projects at <A href=3D"http://www.kitware.com/opensource/opensource.html"=
=20
target=3D_blank>http://www.kitware.com/opensource/opensource.html</A><BR>=
<BR>Please=20
keep messages on-topic and check the CMake FAQ at: <A=20
href=3D"http://www.cmake.org/Wiki/CMake_FAQ"=20
target=3D_blank>http://www.cmake.org/Wiki/CMake_FAQ</A><BR><BR>Follow thi=
s link=20
to subscribe/unsubscribe:<BR><A=20
href=3D"http://www.cmake.org/mailman/listinfo/cmake"=20
target=3D_blank>http://www.cmake.org/mailman/listinfo/cmake</A><BR></BLOC=
KQUOTE></DIV><BR></DIV></BODY></HTML>
--_000_CE02FD8B66D200479556811B662F40741CFA0871F2SINTEFEXMBX01_--
More information about the CMake
mailing list