[CMake] Confusion with $<CONFIGURATION>
Robert Dailey
rcdailey.lists at gmail.com
Tue Nov 6 15:31:52 EST 2012
On second thought, CMAKE_CFG_INTDIR won't work for multi-configuration
generators. It is using $(OutDir) for Visual Studio 2008 generator,
which my custom command can't understand. I'd like to use
$<CONFIGURATION> but then it won't work for single-configuration
generators (like NMake) where I want it to be "." only.
Any ideas?
On Mon, Nov 5, 2012 at 5:45 PM, Robert Dailey <rcdailey.lists at gmail.com> wrote:
> Sorry I got confused, what I needed to use is CMAKE_CFG_INTDIR.
>
> On Mon, Nov 5, 2012 at 5:17 PM, Robert Dailey <rcdailey.lists at gmail.com> wrote:
>> I'm using a custom target to copy files to the following directory:
>>
>> ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$<CONFIGURATION>
>>
>> This works on Visual Studio generators, because binaries that are
>> compiled are placed in the directory above.
>>
>> However, if I generate for NMake on Windows, binaries are placed in
>> ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} instead, but $<CONFIGURATION> for
>> the NMake makefiles generator says "Debug" instead of just "." so my
>> files do not copy to the correct location.
>>
>> Can anyone explain this? Am I doing something wrong? How can I make my
>> files copy to the appropriate binary output directory on both
>> generators?
More information about the CMake
mailing list