From d7b67a2eb4d89e17ff92dea5142f2839c67ae090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 25 May 2020 22:23:22 +0200 Subject: [PATCH] Fix MinGW linker flag tests breaking later tests (cherry picked from commit cfc23cd0879171c796b6ddff4ee178dd111a526c) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index be2eaf96..be7b6397 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,6 +128,9 @@ if (MINGW) if (_GLFW_HAS_64ASLR) set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--high-entropy-va ${CMAKE_SHARED_LINKER_FLAGS}") endif() + + # Clear flags again to avoid breaking later tests + set(CMAKE_REQUIRED_FLAGS) endif() #--------------------------------------------------------------------