regex - CMake bracket escape character for custom target command -
i in need of bracket escape character used avoid quoting special characters in cmake when parsing make commands add_custom_target. more of syntax problem understanding, not covered in cmake documentation.
an example case is:
add_custom_target ( defined_path .exe <args1> | ( ! grep ... )
in example, extension resolved | "(" grep ... ")". unfortunately appending backslash before brackets works string cases, i.e. assigning variable set: set ( "(" ). variable resolved in build.make surrounded quotations. likewise parsing pre-formatted list using separate_arguments resolves quotations.
the full command without make formatting executed successfully.
cmake requires explicit call shell in target command
Comments
Post a Comment