<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Is there a way to override CMAKE_INSTALL_PREFIX in a multi-level CMake project?  Since my package has a long history of being installed in a location other than /usr/local, I really want to have the default match previous practice.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>For example, I have a source tree that looks like this:<DIV><BR class="khtml-block-placeholder"></DIV><DIV>root_dir</DIV><DIV>    src</DIV><DIV>    lib</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>In the root_dir/CMakeLists.txt file I set:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>SET(CMAKE_INSTALL_PREFIX "/usr/thispkg" CACHE PATH "Prefix prepended to install directories")</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>However this default setting does not show up when running ccmake or cmake.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">Changing this to:</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">SET(CMAKE_INSTALL_PREFIX "/usr/thispkg")</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">causes the value to show up in the root <FONT class="Apple-style-span" face="Helvetica" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;">cmake_install.cmake file but nowhere else.</SPAN></FONT></SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>What is the appropriate way of doing this?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Lee Butler</DIV></DIV></BODY></HTML>