[CMake] xxx_OUTPUT_DIRECTORY is not

Tyler Roscoe tyler at cryptio.net
Thu Dec 18 15:42:44 EST 2008


On Thu, Dec 18, 2008 at 12:48:49PM -0700, Brad Aisa wrote:
> I have set
> CMAKE_xxx_OUTPUT_DIRECTORY (LIBRARY RUNTIME ARCHIVE)
> at the top of my CMakeLists.txt
> I then confirmed it had this value for my target properties.
> 
> But when I build, MSVC adds an additional Target subdirectory, which is 
> not what I want. For example, I want this generated:
> 
> C:\MyProject\lib -- generate lib files into here
> 
> When I did a printout on target1, it was this:
> Target: target1 LIBRARY_OUTPUT_DIRECTORY=C:/MyProject/lib
> 
> but when I actually build, I get this:
> 
> C:\MyProject\lib\Debug -- files generated into here
> 
> How can I suppress the addition of this extra level of subfolder?

You can't suppress it, but investigate $CMAKE_CFG_INTDIR to handle this
situation.

tyler


More information about the CMake mailing list