From df03ba3883e67320a320423ff288443fce747e69 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 9 Dec 2023 12:23:11 +0100 Subject: [PATCH] build: Fix build on macOS --- cmake/build_helpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 08f08a80b..7ec385fcf 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -445,7 +445,7 @@ macro(setupCompilerFlags target) set(IMHEX_COMMON_FLAGS "${IMHEX_COMMON_FLAGS} -Wall -Wextra -Wpedantic -Werror") endif() - if (UNIX AND CMAKE_CXX_COMPILER_ID MATCHES "GNU") + if (UNIX AND NOT APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU") set(IMHEX_COMMON_FLAGS "${IMHEX_COMMON_FLAGS} -rdynamic") endif()