From e5f4de2923c1fd72c993b98692cefabe0b86bcaf Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Wed, 30 Jul 2025 19:08:33 +0300 Subject: Another CMakeLists.txt fix --- CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 91166c1..ecc0271 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,7 +53,7 @@ set(ENABLE_EXAMPLES ON CACHE BOOL "Enable building examples") set(ENABLE_LTO ON CACHE BOOL "Enable LTO support") set(ENABLE_MT ON CACHE BOOL "Enable multithreading support") set(USE_CLOCK_GETTIME OFF CACHE BOOL "Force use clock gettime") -set(BH_ENABLE_LFS OFF CACHE BOOL "Enable long file support") +set(ENABLE_LFS OFF CACHE BOOL "Enable long file support") # Enable IPO/LTO if(ENABLE_LTO) @@ -78,6 +78,16 @@ if(ENABLE_TESTING) enable_testing() endif() +# Additional feature flags +if(ENABLE_LFS) + set(BH_ENABLE_LFS TRUE) +endif() + +if(USE_CLOCK_GETTIME) + set(BH_USE_CLOCK_GETTIME TRUE) +endif() + + # Set library code file(GLOB BH_SOURCE "src/*.c" -- cgit v1.2.3