[CMake] CMAKE_INSTALL_PREFIX problem

Jeremy Ardley jeremy.ardley at gmail.com
Wed Sep 24 01:58:02 EDT 2014


I am using cmake 2.8.9 on debian wheezy. I'm fairly new to using cmake.

My CMakelists.txt file starts with

cmake_minimum_required(VERSION 2.6)
SET(CMAKE_INSTALL_PREFIX /home/jeremy/Projects/local/)
project(myproject)

....

Finishing with

INSTALL ( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/@APPLICATION_NAME@ DESTINATION @${BUILD_BIN} )

which installs in my target directory, but under a tree prefixed by the
'@' character. i.e. /home/jeremy/Projects/local/@/sbin and equivalent.

I'm guessing that this is a result of the fragment

@${BUILD_BIN}

The problem is that if I remove the '@' the INSTALL ignores the
CMAKE_INSTALL_PREFIX

I've experimented with different variations on the INSTALL lines to no
success.

Any advice on how to get my INSTALLS ending up in
/home/jeremy/Projects/local/sbin and equivalent?

Thanks

-- 
Jeremy Ardley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140924/7f8692b8/attachment.html>


More information about the CMake mailing list