summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKirottu <[email protected]>2021-01-06 21:45:32 +0200
committerGitHub <[email protected]>2021-01-06 20:45:32 +0100
commit22da9087b1e9ea8df1fa00778b70c115d34f0c03 (patch)
tree40b5e33280c149d992915cb85f81fc4efd434105
parenta6cd6eedbe4666318d1e9b7a291cbfaba9410b26 (diff)
downloadraylib-22da9087b1e9ea8df1fa00778b70c115d34f0c03.tar.gz
raylib-22da9087b1e9ea8df1fa00778b70c115d34f0c03.zip
Include SUPPORT_DATA_STORAGE flag for building with CMake (#1515)
* Update CMakeOptions.txt * Update config.h.in
-rw-r--r--src/CMakeOptions.txt1
-rw-r--r--src/config.h.in2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/CMakeOptions.txt b/src/CMakeOptions.txt
index a0f86445..7eff4c89 100644
--- a/src/CMakeOptions.txt
+++ b/src/CMakeOptions.txt
@@ -32,6 +32,7 @@ option(SUPPORT_GIF_RECORDING "Allow automatic gif recording of current screen pr
option(SUPPORT_BUSY_WAIT_LOOP "Use busy wait loop for timing sync instead of a high-resolution timer" OFF)
option(SUPPORT_EVENTS_WAITING "Wait for events passively (sleeping while no events) instead of polling them actively every frame" OFF)
option(SUPPORT_HIGH_DPI "Support high DPI displays" OFF)
+option(SUPPORT_DATA_STORAGE "Support for persistent data storage" ON)
# rlgl.h
option(SUPPORT_VR_SIMULATOR "Support VR simulation functionality (stereo rendering)" ON)
diff --git a/src/config.h.in b/src/config.h.in
index 5f645233..4cb217b5 100644
--- a/src/config.h.in
+++ b/src/config.h.in
@@ -21,6 +21,8 @@
#cmakedefine SUPPORT_HIGH_DPI 1
// Support CompressData() and DecompressData() functions
#cmakedefine SUPPORT_COMPRESSION_API 1
+// Support for persistent data storage
+#cmakedefine SUPPORT_DATA_STORAGE 1
// rlgl.h
// Support VR simulation functionality (stereo rendering)