<div dir="ltr"><div>Hi Jeremy.<br><br></div>Does ${BUILD_BIN} perhaps start with a slash? If so, it would be interpreted as an absolute path, which of course ignores CMAKE_INSTALL_PREFIX.<br><br>Petr<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 24, 2014 at 7:58 AM, Jeremy Ardley <span dir="ltr"><<a href="mailto:jeremy.ardley@gmail.com" target="_blank">jeremy.ardley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    I am using cmake 2.8.9 on debian wheezy. I'm fairly new to using
    cmake.<br>
    <br>
    My CMakelists.txt file starts with<br>
    <br>
    cmake_minimum_required(VERSION 2.6)<br>
    SET(CMAKE_INSTALL_PREFIX /home/jeremy/Projects/local/)<br>
    project(myproject)<br>
    <br>
    ....<br>
    <br>
    Finishing with<br>
    <br>
    <pre>INSTALL ( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/@APPLICATION_NAME@ DESTINATION @${BUILD_BIN} )</pre>
    which installs in my target directory, but under a tree prefixed by
    the '@' character. i.e. /home/jeremy/Projects/local/@/sbin and
    equivalent.<br>
    <br>
    I'm guessing that this is a result of the fragment <br>
    <pre>@${BUILD_BIN}
</pre>
    The problem is that if I remove the '@' the INSTALL ignores the
    CMAKE_INSTALL_PREFIX<br>
    <br>
    I've experimented with different variations on the INSTALL lines to
    no success.<br>
    <br>
    Any advice on how to get my INSTALLS ending up in
    /home/jeremy/Projects/local/sbin and equivalent?<br>
    <br>
    Thanks<span class="HOEnZb"><font color="#888888"><br>
    <br>
    <div>-- <br>
      <font size="4">
        <font color="DarkCyan">Jeremy Ardley</font><br>
      </font></div>
  </font></span></div>

<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote></div><br></div>