Hi Luke. Quotes are generally a pain. I haven't tested it, but I would try putting the option specification in quotes (for cmake), like this:
set (CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} "/MyCustomTool:\"$(SolutionDir)\"") Petr On Mon, Apr 30, 2012 at 11:36 AM, Luke Snape <ldjsn...@gmail.com> wrote: > Hello, > > I am adding some custom compiler options to a VS2008 project containing paths > with spaces. As such, I require double quotes around the argument name to > ensure the spaces in the path are not interpreted as individual compiler > flags. e.g: > > set (CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} > /MyCustomTool:\"$(SolutionDir)\") > > The double quotes are always removed, with or without the escape sequence. Is > there any way around this? > > Thanks, > > Luke > -- > > 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 -- 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