[CMake] Question about CMAKE_INSTALL_PREFIX
Dizzy
dizzy at roedu.net
Wed Sep 26 04:59:14 EDT 2007
On Wednesday 26 September 2007 11:50:49 Joachim Ziegler wrote:
> Hello,
>
> why does the following not work? I want to install a binary, which has
> just been built, into a bin/ directory of the build tree:
>
> SET(CMAKE_INSTALL_PREFIX ${PROJECT_BINARY_DIR})
> MESSAGE(${CMAKE_INSTALL_PREFIX})
> INSTALL(TARGETS startCompletionServer RUNTIME DESTINATION bin)
>
>
> The path contained in ${CMAKE_INSTALL_PREFIX} output correctly by
> MESSAGE in a "make rebuild_cache", but then I get:
>
> $ make install
> [100%] Built target startCompletionServer
> Install the project...
> -- Install configuration: ""
> -- Install configuration: ""
> -- Installing /usr/local/bin/startCompletionServer
> CMake Error: Error in cmake code at
> /KM/usr/ziegler/ExGen/cmake/build/src/cmake_install.cmake:30:
> FILE INSTALL cannot copy file
> "/KM/usr/ziegler/ExGen/cmake/build/src/CMakeFiles/CMakeRelink.dir/startComp
>letionServer" to "/usr/local/bin/startCompletionServer".
So, do you have the target
file "/KM/usr/ziegler/ExGen/cmake/build/src/CMakeFiles/CMakeRelink.dir/startCompletionServer" ?
If yes do you have write privileges in /usr/local/bin so you can
write/install files there?
From your prompt ($, denoting an unprivileged normal user) it seems to be the
later problem.
--
Mihai RUSU Email: dizzy at roedu.net
"Linux is obsolete" -- AST
More information about the CMake
mailing list