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: [EMAIL PROTECTED]
                        "Linux is obsolete" -- AST
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to