Open BobIsOnFire opened 3 years ago
bad regex matcher when CPPFLAGS are extracted over here:
yes, because ABC is matched before ABCD so ABCD will be replaced to D only. Either we need to sort the list by length first or try to do exact matches (this also requires length sorting first.)
@Neumann-A Are you interested in fixing this issue?
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
Describe the bug I want to build a project using configure/make with a cpp definition which contains another definition I use (e.g.,
-DABC -DABCD
). Vcpkg build fails at configuring stage.Environment
To Reproduce So my triplet file looks like this:
Steps to reproduce the behavior:
Tried on 2021.05.12 and master.
Expected behavior Successful build
Failure logs stdout
config-x64-linux-dbg-out.log
config-x64-linux-dbg-err.log
config.log
cmake-vars-x64-linux-dbg.cmake.log
Additional context Vcpkg detected my CFLAGS correctly, but passed some weird
-fPICD
to configure call. I believe this is due to bad regex matcher when CPPFLAGS are extracted over here: https://github.com/microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_configure_make.cmake