-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REGEX REPLACE in CMakeLists.txt fails for complex directory paths #2069
Comments
I think we should simply switch to a more standard CMake use, and:
If agreed, I probably can work on it this week, but probably it would be better to do this on the private branch for v3 |
Merged
Thanks! |
Thanks a lot! |
Solve via #2070 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
Pinocchio build fails when using complex (symbolic) directory paths, e.g.,
/test_pinnochio_build/1.0+gitAUTOINC+8ajb23j4b/pinocchio/build
, as REGEX REPLACE fails to correctly amend strings before attempting to create symbolic links (or copying).This issue was found while using pinocchio with the Yocto SDK.
Expected behavior
The build should not fail for any directory paths given.
Reproduction steps
Steps to reproduce the behavior:
cd test_pinnochio_build/1.0+gitAUTOINC+8ajb23j4b/pinocchio git submodule update --init
Solution
The problem can be solved by replacing
REGEX REPLACE
withREPLACE
, which given the fact that the desired string operation doesnt require the flexibility of regular expressions may make sense to move away from anyways (unless I am missing something here which might be the case as I am pretty new with Pinocchio). The swap must be done in three files:1. Toplevel CMakeLists.txt
2. Python bindings CMakeLists.txt
3. Unittest CMakelists.txt
System
The text was updated successfully, but these errors were encountered: