summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorlinnemannr <linnemannr@gmail.com>2015-05-25 04:07:31 +0200
committerlinnemannr <linnemannr@gmail.com>2015-05-25 04:07:31 +0200
commit5049fd0fbf2fe2e54d86d9d0f704d5daa301f819 (patch)
tree58686e599ffdb26697fbca7cac3cad5f0bd5d146 /lib
parentMerge pull request #2117 from Seadragon91/clang_errors (diff)
downloadcuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar.gz
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar.bz2
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar.lz
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar.xz
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.tar.zst
cuberite-5049fd0fbf2fe2e54d86d9d0f704d5daa301f819.zip
Diffstat (limited to '')
-rw-r--r--lib/sqlite/CMakeLists.txt2
-rw-r--r--lib/tolua++/CMakeLists.txt4
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlite/CMakeLists.txt b/lib/sqlite/CMakeLists.txt
index 993dac146..b9471c1f2 100644
--- a/lib/sqlite/CMakeLists.txt
+++ b/lib/sqlite/CMakeLists.txt
@@ -25,7 +25,7 @@ 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)
+ add_flags_cxx("-D_XOPEN_SOURCE=600")
endif()
add_library(sqlite ${SOURCE})
diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt
index 12054323b..02883397e 100644
--- a/lib/tolua++/CMakeLists.txt
+++ b/lib/tolua++/CMakeLists.txt
@@ -53,4 +53,8 @@ if(UNIX)
target_link_libraries(tolua m ${DYNAMIC_LOADER})
endif()
+if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+ add_flags_lnk(-L/usr/local/lib)
+endif()
+
target_link_libraries(tolua tolualib lua)