Yarp: REGEX REPLACE sintax error causing invalid sequence

Created on 10 Oct 2019  路  3Comments  路  Source: robotology/yarp

Issue Description

In the file _cmake/YarpIDL.cmake_ line 171 (devel branch)

https://github.com/robotology/yarp/blob/a656496b49d3c4afafef10e8a647abfb39a1e686/cmake/YarpIDL.cmake#L170-L172

causes the installation of a _YarpIDL.cmake_ file that arises the following error when trying to compile other repositories that depend on Yarp package

when parsing string ^.+/([^\/]+)$ Invalid escape sequence \/

Solved by modifying the cmake file, hence substituting the aforementioned line with;

      if(NOT _cpp_placement_ns)
        string(REGEX REPLACE "^.+/([^/]+)$" "\\1" _dest_file "${_dest_file}")
      endif()

and reinstall the header.

CC @nunoguedelha

CMake IDL YARP v3.3.0 Bug

Most helpful comment

All 3 comments

@CarlottaSartore Thanks for debugging and taking time to open this issue.
Would you like to try and create a pull request to fix this issue?

Fixed by #2110

Was this page helpful?
0 / 5 - 0 ratings

Related issues

diegoferigo picture diegoferigo  路  3Comments

Nicogene picture Nicogene  路  3Comments

xEnVrE picture xEnVrE  路  3Comments

Nicogene picture Nicogene  路  4Comments

traversaro picture traversaro  路  3Comments