[CMake] environment variables and visual studio
Bill Hoffman
bill.hoffman at kitware.com
Mon Oct 22 07:49:10 EDT 2007
Jesper Eskilson wrote:
> Is there any way for CMake to set environment variables which can be
> picked up in Visual Studio's pre/post-build steps?
>
> I'm working on a system where I've got a couple of studio project
> included via the INCLUDE_EXTERNAL_MSPROJECT(), and I would like to be
> able to refer to things like CMAKE_BINARY_DIR, so that the external
> msprojects can put their output relative to the CMake build dir.
>
No, this is not possible. CMake is no longer running when the project is
built. I do not think there is a way to set variables in the .sln file
which is where they would have to be set.
-Bill
More information about the CMake
mailing list