On 06/22/2015 05:00 PM, Dan Liew wrote:
> One of the libraries listed in the INTERFACE_LINK_LIBRARIES has
> invalid syntax because the slashes have not been escaped. I believe
> the correct solution would be to have CMake convert all paths to CMake
> style paths before writing them to export files.

If we were to take that approach the conversion would need to take
place much earlier so that the in-build targets behave the same
way.  For now the simplest thing to do is fix the escaping of the
export files because that needs to be done anyway.

>  Source/cmExportFileGenerator.cxx
>  Source/cmExportBuildFileGenerator.cxx
>  Source/cmExportInstallFileGenerator.cxx
> 
> in the CMake source tree.  There are several places that just generate
> double quotes around a raw value that should instead use EscapeForCMake.

Here is a fix and a test:

 Export: Escape exported property values when writing CMake language files
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c47cc249

Thanks,
-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to