[CMake] Some problems with EXE_EXTENSION
Charles Boivin
okeovtk at gmail.com
Thu Dec 8 16:45:59 EST 2005
Hello all,
CMake newbie here. I have this custom command where I would need to make use
of EXE_EXTENSION (as referred to in the Mastering CMake book). However, it
seems that this is always empty, even for Visual Studio solutions. I also
dumped out ALL the variables to a file, and this particular variable does
not seem to be defined.
Here is my custom command. Please forgive any unneeded code due to
newbieness.. :-)
ADD_CUSTOM_COMMAND(
TARGET ${EXECUTABLENAME}
POST_BUILD
COMMAND ${CMAKE_COMMAND}
ARGS -E copy
${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${EXECUTABLENAME}${EXE_EXTENSION}
${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/${EXECUTABLENAME}${EXE_EXTENSION}
COMMENT "Copying executable to common folder..."
)
Anyone with a suggestion? Right now, since ${EXE_EXTENSION} is empty, the
resulting executable does not get copied.
I thank you all in advance.
Charles Boivin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20051208/11c6641f/attachment.html
More information about the CMake
mailing list