Another CMakeLists.txt fix

This commit is contained in:
2025-07-30 19:08:33 +03:00
parent 6a11305d37
commit e5f4de2923

View File

@@ -53,7 +53,7 @@ set(ENABLE_EXAMPLES ON CACHE BOOL "Enable building examples")
set(ENABLE_LTO ON CACHE BOOL "Enable LTO support") set(ENABLE_LTO ON CACHE BOOL "Enable LTO support")
set(ENABLE_MT ON CACHE BOOL "Enable multithreading support") set(ENABLE_MT ON CACHE BOOL "Enable multithreading support")
set(USE_CLOCK_GETTIME OFF CACHE BOOL "Force use clock gettime") 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 # Enable IPO/LTO
if(ENABLE_LTO) if(ENABLE_LTO)
@@ -78,6 +78,16 @@ if(ENABLE_TESTING)
enable_testing() enable_testing()
endif() 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 # Set library code
file(GLOB BH_SOURCE file(GLOB BH_SOURCE
"src/*.c" "src/*.c"