[CMake] VS.NET generation...
Brad King
brad.king at kitware.com
Wed Nov 10 06:45:08 EST 2004
Lars Pechan wrote:
> ADD_CUSTOM_COMMAND(
> OUTPUT ${EXEDIR}/${CMAKE_CFG_INTDIR}/${cpFile}
> COMMAND ${CMAKE_COMMAND}
> ARGS -E copy ${GENDIR}/${cpFile} ${EXEDIR}/${CMAKE_CFG_INTDIR}/${cpFile}
> DEPENDS ${GENDIR}/${cpFile}
> )
[snip]
> Is there a way I can explicitly set CMAKE_CFG_INTDIR in some
> carefully chosen location to some other value than '\.' to see if that
> helps?
The "proper" way to use CMAKE_CFG_INTDIR is like this:
OUTPUT ${EXEDIR}${CMAKE_CFG_INTDIR}/${cpFile}
Note the missing "/" character. It really evaluates to "/." or
"/Debug", etc. so the slash will be added.
-Brad
More information about the CMake
mailing list