rollbear / trompeloeil

Header only C++14 mocking framework
Boost Software License 1.0
802 stars 85 forks source link

Specify project LANGUAGES in CMakeLists.txt #324

Closed sstallion closed 9 months ago

sstallion commented 9 months ago

If Trompeloeil is included into a project using ExternalProject_Add or the FetchContent module it will cause CMake to attempt to detect a C compiler, which is undesirable for projects that are written in pure C++. This is due the default behavior of the project command when LANGUAGES is not specified.

This PR addresses the issue by specifying CXX in the project call, which prevents automatic compiler detection for C.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (57318ea) 99.30% compared to head (f808819) 99.30%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #324 +/- ## ======================================= Coverage 99.30% 99.30% ======================================= Files 1 1 Lines 1006 1006 Branches 22 22 ======================================= Hits 999 999 Misses 7 7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

rollbear commented 9 months ago

Thank you!