On Sun, Dec 7, 2008 at 1:05 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
#------------<br>
project(test)<div class="Ih2E3d"><br>
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin<br>
CACHE PATH<br>
"Single Directory for all executables"<br>
)<br></div>
message(STATUS "CMAKE_RUNTIME_OUTPUT_DIRECTORY: ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")<br>
<br>
Then I ran cmake 2.6.2 on that CMakeLists.txt file and I get the following:<br>
-- CMAKE_RUNTIME_OUTPUT_DIRECTORY: /Users/mjackson/Desktop/test/Build/Bin<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to: /Users/mjackson/Desktop/test/Build<br>
<br>
Odd yours does not print anything out. Can you run the above short CMakeLists.txt file and see what gets output? Also is this what you are looking for or did you want to copy external libraries into the build directory?</blockquote>
</div><br>Of course yours will print something, as you're clearly setting the variable right above your message() call. I'm printing it without setting it first, as I do not want to change the output location of my binaries. The default should be ./Debug or ./Release, depending on the configuration. Yours looks like it will place both release and debug executables in the same directory, which I do not want. How do I get the default output location for my binaries?<br>