Use install(PROGRAMS...) to install scripts, instead of install(DIRECTORY..)

with the PERMISSIONS statement.

== Reason: that mail ==

Message-ID: <4A2D1852.5050308@itis.ethz.ch>
Date: Mon, 08 Jun 2009 15:55:30 +0200
From: Dominik Szczerba <dominik@itis.ethz.ch>
To: cgal-discuss@lists-sop.inria.fr
Subject: [cgal-discuss] small installation issue on linux (CGAL v3.4)
Reply-To: cgal-discuss@lists-sop.inria.fr

Hi,
While 'make install' a following error is issued:

CMake Error at cmake_install.cmake:55 (FILE):
   file Problem setting permissions on directory "/usr/local/bin"

The properties of this folder are:

drwxrwxr-x  2 root  staff 4096 2009-06-08 15:46 bin

which is certainly sufficient for any local install by a staff member. 
By temporarilly changing the ownership of the folder to myself the 
installation proceeds, but it changes the permissions to 'drwxr-xr-x', 
which is not how it should be done. Is there a particular reason to do 
it this way or is it simply overlooking?

with regards,
Dominik
-- 
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
This commit is contained in:
Laurent Rineau 2009-06-09 14:04:24 +00:00
parent 761a218fff
commit 247f2513c3
1 changed files with 2 additions and 4 deletions

View File

@ -408,10 +408,8 @@ install(FILES AUTHORS CHANGES LICENSE LICENSE.FREE_USE LICENSE.LGPL LICENSE.QPL
install(DIRECTORY include/CGAL DESTINATION ${CGAL_INSTALL_INC_DIR} )
install(DIRECTORY "${CMAKE_BINARY_DIR}/include/CGAL" DESTINATION ${CGAL_INSTALL_INC_DIR} )
install(DIRECTORY scripts/ DESTINATION ${CGAL_INSTALL_BIN_DIR}
PATTERN "scripts/*" PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ)
file(GLOB scripts "scripts/*")
install(PROGRAMS ${scripts} DESTINATION ${CGAL_INSTALL_BIN_DIR})
install(DIRECTORY ${CGAL_MODULES_REL_DIR}/ DESTINATION ${CGAL_INSTALL_CMAKE_DIR} )
install(FILES ${CGAL_MODULES_REL_DIR}/UseCGAL.cmake DESTINATION ${CGAL_INSTALL_CMAKE_DIR} )