[CMake] Paths with spaces - Visual Studio
Totte Karlsson
totte at dunescientific.com
Wed Jul 4 13:03:16 EDT 2012
Hi,
I had a problem with a source path containing spaces:
SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}
/DEF:${CMAKE_CURRENT_SOURCE_DIR}/c_api_vs.def")
where CMAKE_CURRENT_SOURCE_DIR had spaces. That casued problems in the visual
studio project.
I quoted the above as this:
..... \"/DEF:${CMAKE_CURRENT_SOURCE_DIR}/c_api_vs.def\"")
and it 'fixed' it. Question is. Is that the preferred way?
thanks,
Totte
--
.........................
Totte Karlsson, Ph.D.
Dune Scientific, LLC
425-296 1980 (office)
425-780 9648 (cell)
www.dunescientific.com
.........................
More information about the CMake
mailing list