DiscussionsIssue archiveOCCT:Configuration

Archived issue #0032816

Configuration, CMake - occt_macros.cmake trips over double + in path

CommunityOCCT:Configurationnew0 public notes

Search issues

Description

Originally reported here https://github.com/IfcOpenShell/IfcOpenShell/issues/2022

I have a user who's building occt in a path containing "C++"

On L569 https://github.com/Open-Cascade-SAS/OCCT/blob/master/adm/cmake/occt_macros.cmake#L569 your script tries to parse a subdir as a regex, which would fail in this case with the following message:

RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.

Because indeed ++ is not a valid regex part

(I filed it under WOK because I don't see a cmake/build category)

Steps to reproduce

Checkout occt in a directory containing ++ and build using cmake.

Public activity

No public notes

Participants are labeled by their role within this record.