From af59c20682b5aa006cbea185beca421161cd8b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Lepage=20Vall=C3=A9e?= Date: Sun, 8 Mar 2026 18:20:16 -0700 Subject: [PATCH] Remove the hardcoded CFLAGS for GCC/LLVM This causes build failures when for cross compiled embedded system. For instance, when the position independent code is not configured the same way. It also prevents using `-Os` instead of `-O2` --- CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fbbf94..e3c357e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,13 +38,6 @@ endif() target_compile_definitions(utf8proc PRIVATE "UTF8PROC_EXPORTS") -if (NOT MSVC) - set_target_properties( - utf8proc PROPERTIES - COMPILE_FLAGS "-O2 -std=c99 -pedantic -Wall" - ) -endif () - set_target_properties (utf8proc PROPERTIES POSITION_INDEPENDENT_CODE ON VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"