They did not get rid of it... It's fairly new functionality.<br><br>Newer than the CMake you are using.<br>(What's the output of "cmake --version" for you?)<br><br>Update your CMake and you will get INSTALL(DIRECTORY...
<br><br>:-)<br><br><br><div><span class="gmail_quote">On 5/22/07, <b class="gmail_sendername">kent williams</b> <<a href="mailto:nkwmailinglists@gmail.com">nkwmailinglists@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
No, not silly advice. I just use the documentation on <a href="http://cmake.org">cmake.org</a> out of<br>habit, and they apparently don't keep it up to date. For a while,<br>apparently, during 2.4 CMake, there was an INSTALL(DIRECTORY ) form
<br>available and they got rid of it.<br><br>A pity because other than that, there is no portable way to simply<br>copy a directory tree to an installation directory. I did it the hard<br>way around, putting a CMakeLists.txt
in every subdirectory that needs<br>to be copied, with an INSTALL(FILES ) command that lists all the files<br>in that directory...<br><br>On 5/22/07, David Cole <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com
</a>> wrote:<br>> Then the subject line of your original email is a typo? I'm sorry if I<br>> offered silly advice, I thought you were using CMake 2.5-20060616...<br>><br>><br>><br>> On 5/22/07, kent williams <
<a href="mailto:nkwmailinglists@gmail.com">nkwmailinglists@gmail.com</a>> wrote:<br>> > Um, I use a newer CMake, just read the docs on CMake.org which are<br>> > apparently older?<br>> ><br>> > On 5/22/07, David Cole <
<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>> wrote:<br>> > > 20060616 is a snapshot from CVS that is almost a year old now. You<br>> should<br>> > > use the --help with your local CMake for what existed in CMake as of
<br>> that<br>> > > time...<br>> > ><br>> > > Or - better yet - update to a more current CMake.<br>> > ><br>> > > HTH,<br>> > > David<br>> > ><br>> > >
<br>> > ><br>> > > On 5/22/07, kent williams <<a href="mailto:nkwmailinglists@gmail.com">nkwmailinglists@gmail.com</a>> wrote:<br>> > > ><br>> > > > According to the man pages for
2.4-patch 7 RC-6 on CMake.org, there is<br>> > > > a form of the INSTALL command for directories. After reading through<br>> > > > the description, I added a command to install a subdirectory into the
<br>> > > > bin install directory:<br>> > > ><br>> > > > INSTALL(DIRECTORY pipeline_approved DESTINATION bin)<br>> > > ><br>> > > > i.e. pipeline_approved is a directory in the same directory as my
<br>> > > > CMakeLists.txt, and I want the file to go into the installation tree<br>> > > > bin directory.<br>> > > ><br>> > > > But when I run CMake, I get this message:<br>
> > > ><br>> > > > CMake Error: Error in cmake code at<br>> > > ><br>> > ><br>> /Volumes/Scratch/kent/brains2/src/iplProg/CMakeLists.txt:61:<br>> > > > INSTALL called with unknown mode DIRECTORY
<br>> > > > -- cmake src dir = /Volumes/Scratch/kent/brains2<br>> > > ><br>> > > > What's up with that?<br>> > > > _______________________________________________<br>> > > > CMake mailing list
<br>> > > > <a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>> > > > <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>> > > >
<br>> > ><br>> > ><br>> ><br>><br>><br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">
http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>