Fix overeager stripping of compile flag (#716)
Fix overeager stripping of compile flag (#716)

The existing regex strips all occurrences of the given string from
`${CMAKE_CXX_FLAGS}`, regardless of whether it is just a substring of a
flag. For instance, `-Werror=format-security` gets truncated to
`=format-security`.

The new regex makes sure that only whole words get replaced.

Signed-off-by: Christoph Erhardt <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@sicherha.de>
oneapi-src/oneTBB,oneapi-src/oneTBB,oneapi-src/oneTBB,oneapi-src/oneTBB