[CMake] To quote (path) variables or not, and everywhere?

Zan Lynx zlynx at acm.org
Mon Sep 25 12:40:41 EDT 2017


On 09/25/2017 10:15 AM, Mateusz Loskot wrote:
> What if (Windows) user runs cmake inside
> 
> c:\my awesome projects\one-superb\build
> 
> and there is xxx_command(${CMAKE_SOURCE_DIR})

Indeed.

In my opinion, if software cannot handle arbitrary path names which
contain anything then that software is broken.

Spaces. Colons. Quotes. Even control characters should work.

-- 
                Knowledge is Power -- Power Corrupts
                        Study Hard -- Be Evil


More information about the CMake mailing list