From d32c733ff3e4dda5db40625ab61bb0d23b403dfd Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 22 Jun 2023 16:47:48 -0500 Subject: [PATCH] cmake: Handle multiple include of compiler flags --- CompilerFlags.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CompilerFlags.cmake b/CompilerFlags.cmake index 4897008ad..7b86bd29e 100644 --- a/CompilerFlags.cmake +++ b/CompilerFlags.cmake @@ -1,6 +1,10 @@ # Copyright 2018-2023, Collabora, Ltd. # SPDX-License-Identifier: BSL-1.0 +if(TARGET xrt-optimized-math) + return() +endif() + # Target used for applying more aggressive optimizations to math-heavy code add_library(xrt-optimized-math INTERFACE)