summaryrefslogtreecommitdiffstats
path: root/lib/sqlite/CMakeLists.txt
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-29 09:14:47 +0200
committermadmaxoft <github@xoft.cz>2014-05-29 09:14:47 +0200
commitb56033d5416306eb71bef9659fee92b368d4436e (patch)
tree7647fc9b8a29dc5ec0bc7258c68e4a59d113b205 /lib/sqlite/CMakeLists.txt
parentFixed a crash in message formatter. (diff)
parentCmake system name not System name (diff)
downloadcuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar
cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.gz
cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.bz2
cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.lz
cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.xz
cuberite-b56033d5416306eb71bef9659fee92b368d4436e.tar.zst
cuberite-b56033d5416306eb71bef9659fee92b368d4436e.zip
Diffstat (limited to 'lib/sqlite/CMakeLists.txt')
-rw-r--r--lib/sqlite/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlite/CMakeLists.txt b/lib/sqlite/CMakeLists.txt
index 0815127ef..9add2280b 100644
--- a/lib/sqlite/CMakeLists.txt
+++ b/lib/sqlite/CMakeLists.txt
@@ -17,6 +17,10 @@ if (WIN32)
source_group("Sources" FILES ${SOURCE})
endif()
+# FreeBSD requires us to define this to get POSIX 2001 standard
+if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+ add_flags_cxx(-D__POSIX_VISIBLE=200112)
+endif()
add_library(sqlite ${SOURCE})