Indeed, it works with
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/massmailer DESTINATION bin)

PS.: This is only a development computer, you do not want to know how ofter I accidently entered rm -f somewhere, and since I want to install into the global bin path, I need root access.

Thank you and greetings, Louis

Tyler Roscoe <ty...@cryptio.net>
at Fri, 10 Dec 2010 12:56:35 -0800
On Fri, Dec 10, 2010 at 08:11:45PM +0100, Louis Hoefler wrote:
-- Build files have been written to: /root/massmailer/Debug
Probably not a good idea to be doing this kind of thing as root.

[100%] Built target massmailer
-- Configuring done
-- Generating done
-- Build files have been written to: /root/massmailer/Release
[100%] Built target massmailer
Install the massmailer release now [Yes/n]? Yes
[100%] Built target massmailer
Install the project...
-- Install configuration: "Release"
CMake Error at massmailer/cmake_install.cmake:36 (FILE):
   file INSTALL cannot find "/root/massmailer/massmailer/massmailer".
Call Stack (most recent call first):
   cmake_install.cmake:37 (INCLUDE)
We'll need to see your CMakeLists.txt to help further, but it's likely
that you got a path wrong in your install() command.

hth,
tyler

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to