[CMake] Path to .obj-files

Tyler Roscoe tyler at cryptio.net
Mon Oct 12 10:43:25 EDT 2009


On Mon, Oct 12, 2009 at 02:19:36PM +0200, Micha Renner wrote:
> Currently, the msvc stores the .obj-files in this directory:
> ${CMAKE_CURRENT_BINARY_DIR}/${_targetname}.dir/${CMAKE_BUILD_TYPE}
> 
> Is there a CMAKE_VARIABLE which stores this path?

AFAIK, no, there isn't.

Note however that CMAKE_BUILD_TYPE is not defined in MSVC. You'll want
to use CMAKE_CFG_INTDIR instead.

tyler


More information about the CMake mailing list