On Dec 7, 2008, at 2:42 PM, Robert Dailey wrote:

On Sun, Dec 7, 2008 at 1:05 PM, Michael Jackson <[EMAIL PROTECTED] > wrote:
#------------
project(test)

SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin
 CACHE PATH
 "Single Directory for all executables"
 )
message(STATUS "CMAKE_RUNTIME_OUTPUT_DIRECTORY: $ {CMAKE_RUNTIME_OUTPUT_DIRECTORY}")

Then I ran cmake 2.6.2 on that CMakeLists.txt file and I get the following: -- CMAKE_RUNTIME_OUTPUT_DIRECTORY: /Users/mjackson/Desktop/test/ Build/Bin
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mjackson/Desktop/test/ Build

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? 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?


Mine was run on OS X using a Makefile. If I use Xcode I would probably get something else. I use that exact same call on windows and VS 7,8,9 will all still use the "Debug" or "Release" directories based on the configuration.


_________________________________________________________
Mike Jackson                  [EMAIL PROTECTED]
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to