approvals / ApprovalTests.cpp

Native ApprovalTests for C++ on Linux, Mac and Windows
https://approvaltestscpp.readthedocs.io/en/latest/
Apache License 2.0
318 stars 51 forks source link

Provide option to disable the compile-time check of `__FILE__` macro #86

Closed claremacrae closed 4 years ago

claremacrae commented 4 years ago

The check added in #79 (compile-time detection of Ninja-created relative paths) breaks compilation in Catch2_Tests if Unity builds are enabled.

There may be other situations where that check causes problems for users (for example, on Windows, if some a source directory has a UNC path (beginning \\)

So I'm thinking I'll provide an option to turn the compile-time check off.

claremacrae commented 4 years ago

This is done now, and is documented in https://github.com/approvals/ApprovalTests.cpp/blob/master/doc/TroubleshootingMisconfiguredBuild.md#use-a-ninja-unity-build-if-you-can

So I'm closing this ticket.