Skip to content

Commit caadbc0

Browse files
authored
Ensure no left over state is left in the required flags variable (#32)
1 parent d511fae commit caadbc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/Findcodecov.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ foreach (LANG ${ENABLED_LANGUAGES})
117117
endif ()
118118
endif()
119119

120+
unset(CMAKE_REQUIRED_FLAGS)
121+
120122
if (COVERAGE_FLAG_DETECTED)
121123
set(COVERAGE_${COMPILER}_FLAGS "${FLAG}"
122124
CACHE STRING "${COMPILER} flags for code coverage.")

0 commit comments

Comments
 (0)