linux installation: cmake INSTALL(DIRECTORY...)

617 views
Skip to first unread message

sto...@gmail.com

unread,
Feb 28, 2008, 12:42:06 AM2/28/08
to itksnap-users
Hi all. getsnap.sh (1.4.1) produces this error toward the end of my
compile on CentOS 5.1:

CMake Error: Error in cmake code at
/home/fsl/itksnap_build/itksnap/itksnap/CMakeLists.txt:569:
INSTALL called with unknown mode DIRECTORY
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
SNAP failed to build in /home/fsl/itksnap_build/install/bin/
InsightSNAP


Line 569 is:
INSTALL(DIRECTORY ${SNAP_BINARY_DIR}/ProgramData DESTINATION $
{SNAP_DATA_INSTALL_DIR})

Any suggestions? I believe it's possible that the version of cmake
(2.4.2) specified in getsnap.sh doesn't actually support
INSTALL(DIRECTORY...).

Thanks in advance,
Stephen

bhb2048

unread,
Apr 4, 2008, 12:11:23 PM4/4/08
to itksnap-users
I got the same error. It worked when I switched to cmake 2.4.6.
Looks like there is a 2.4.8 now as well.
Barry Branham
Reply all
Reply to author
Forward
0 new messages