${CMAKE_CURRENT_BINARY_DIR} returns a directory that contains generated files, such as vcproj files when generating for visual studio. However, actual compiled binaries are placed:<div><br></div><div>${CMAKE_CURRENT_BINARY_DIR}/${target_name}.dir/Debug (for debug configuration)</div>
<div><br></div><div>Is there a variable or target property that will give me the following path for any target:</div><div><br></div><div>${CMAKE_CURRENT_BINARY_DIR}/${target_name}.dir
</div><div><br></div><div>(I don't care about debug/release being part of the path, I just want the "target.dir" part to be included in the path. Right now I'm hard-coding the ".dir" directory and appending it to my path, but I don't know if this naming scheme is guaranteed by CMake or if it will change in the future.</div>