[CMake] Reliable binaries output directory

2014-03-07 Thread Lucas Soltic
Hello, Is there a way to know exactly (through a CMake variable or command) where the binaries will be put? I've defined CMAKE_RUNTIME_OUTPUT_DIRECTORY to put all the executables in the same directory, but some generators will use a Debug/Release subdirectory of this variable's value, whereas

Re: [CMake] Reliable binaries output directory

2014-03-07 Thread Nils Gladitz
On 07.03.2014 18:55, Lucas Soltic wrote: Is there a way to know exactly (through a CMake variable or command) where the binaries will be put? In which context do you need the location? If you need the path for e.g. a custom command[1] a generator expression[2] like $TARGET_FILE_DIR:tgt or