For non-CMake project (especially VS native ones) you could use
${CMAKE_CFG_INT_DIR} variable instead (
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_CFG_INTDIR
)It will be evaluated into current solution's configuration. However please note that in this case configurations in CMake should be the same as in nested project. And may be I misunderstood your question, but BUILD_COMMAND in external project should work without extra quotes (that is msbuild '/p:Configuraion' ...). I suppose /p gets converted to \p because CMake interprets this whole string as path to binary and converts path separator to native form (which is back-slash on windows). On Sun, Aug 7, 2011 at 1:15 AM, Bill Hoffman <[email protected]>wrote: > On 8/6/2011 11:53 AM, Richard Offer wrote: > >> >> Hi, >> >> I'm trying to build Google protocol buffers as an external project on >> Windows and am hitting an issue with over assuming something is a path. >> >> >> I need to be able to call msbuild with options. (/p:Configuration=Debug), >> but cmake converts this to \p:Configuration=Debug before passing the >> string to msbuild. >> >> This might work: > > cmake --build path/to/project --config Debug > > > ______________________________**_________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/** > opensource/opensource.html<http://www.kitware.com/opensource/opensource.html> > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/**CMake_FAQ<http://www.cmake.org/Wiki/CMake_FAQ> > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake> >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
