From 64a41d61de0bdb4b53e57afa22c72d695c32e8fb Mon Sep 17 00:00:00 2001 From: Dmitry Gerasimov <dmitriy.gerasimov@demlabs.net> Date: Tue, 23 Aug 2022 15:11:53 +0700 Subject: [PATCH] [*] Flat namespace for DARWIN --- cmake/OS_Detection.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OS_Detection.cmake b/cmake/OS_Detection.cmake index 3a3af67d2a..0a73b8c83b 100644 --- a/cmake/OS_Detection.cmake +++ b/cmake/OS_Detection.cmake @@ -100,7 +100,7 @@ if(UNIX) endif() elseif (DARWIN) set(CCOPT_SYSTEM "-L/usr/local/lib -L/opt/homebrew/lib -I/opt/homebrew/include -I/usr/local/include") - set(LDOPT_SYSTEM "-L/usr/local/lib -L/opt/homebrew/lib -lintl") + set(LDOPT_SYSTEM "-L/usr/local/lib -L/opt/homebrew/lib -lintl -flat_namespace") set(CCFLAGS_COMMON "-std=c11 -Wall -Wno-address-of-packed-member -Wno-unused-command-line-argument -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter") if(DAP_DEBUG) set(_CCOPT "${CCOPT_SYSTEM} -DDAP_DEBUG ${CCFLAGS_COMMON} -g3 -ggdb -fno-eliminate-unused-debug-symbols -fno-strict-aliasing") -- GitLab