aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2025-07-30 19:08:33 +0300
committerMikhail Romanko <me@blankhex.com>2025-07-30 19:08:33 +0300
commite5f4de2923c1fd72c993b98692cefabe0b86bcaf (patch)
tree7656ef91a4b2c7dd924780b0911844c2dc8096fb
parent6a11305d37cd3c7fc11fa71661e04315c2d469d6 (diff)
downloadbhlib-e5f4de2923c1fd72c993b98692cefabe0b86bcaf.tar.gz
Another CMakeLists.txt fix
-rw-r--r--CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
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"