From 676e82fd11f7bab138a7ff64e7e3bc38bddb85ea Mon Sep 17 00:00:00 2001 From: Fabrice Date: Sun, 12 Apr 2026 08:08:59 +0200 Subject: use more portable --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 00247dc..a9ca13d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,8 +38,6 @@ target_compile_definitions(cheesemap target_compile_options(cheesemap PRIVATE -Wall -Wextra -Werror - -std=gnu11 - -fPIC $<$:-g3> $<$:-fsanitize=undefined> @@ -47,6 +45,12 @@ target_compile_options(cheesemap $<$:-msse2> ) +set_target_properties(cheesemap PROPERTIES + C_STANDARD 11 + C_STANDARD_REQUIRED ON + C_EXTENSIONS ON +) + ## configuration summary message(STATUS "cheesemap configuration:") -- cgit v1.2.3