Hi Arvind, <br><br>As documented <a href="http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_RUNTIME_OUTPUT_DIRECTORY">here</a>, set the variable CMAKE_RUNTIME_OUTPUT_DIRECTORY instead.<br><br>Usually I set this one just after I invoke PROJECT() command.<br>
<br>Indeed, as specified <a href="http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:EXECUTABLE_OUTPUT_PATH">here</a>, EXECUTABLE_OUTPUT_PATH has been deprecated since cmake 2.6.<br><br>Jc<br><br><div class="gmail_quote">
On Tue, Mar 22, 2011 at 6:12 PM, Arvind Rao <span dir="ltr"><<a href="mailto:arvind.sbia@gmail.com">arvind.sbia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi All,<div><br>I have what should be a simple issue. I have successfully built a project using CMAKE(out of source build). The executables are all placed in the Project/build/Exec. But I want them placed in Project/build/bin/ instead. Toward this end, I set the EXECUTABLE_OUTPUT_PATH, in the top-level CMakeList file, like so:<br>
<br>cmake_minimum_required(VERSION 2.6)<br>project(EXAMPLE)<br><br>set(CMAKE_CXX_FLAGS "-Wall")<br>add_subdirectory(Exec)<div><br>set( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin )<br><br>The result is that the executables are all placed in /Project/build/Exec, whether Project/build/bin exists or not. Does anyone have ideas?<br>
<br>Best wishes, <br><font color="#888888">Arvind</font></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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>
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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>