Lines 1-4
Link Here
|
1 |
--- CMakeLists.txt.orig 2017-11-15 11:23:07 UTC |
1 |
--- CMakeLists.txt.orig 2018-04-11 15:16:11 UTC |
2 |
+++ CMakeLists.txt |
2 |
+++ CMakeLists.txt |
3 |
@@ -38,9 +38,9 @@ if (NOT CMAKE_OSX_DEPLOYMENT_TARGET) |
3 |
@@ -38,9 +38,9 @@ if (NOT CMAKE_OSX_DEPLOYMENT_TARGET) |
4 |
endif () |
4 |
endif () |
Lines 12-18
Link Here
|
12 |
endif () |
12 |
endif () |
13 |
|
13 |
|
14 |
# required for clang completion in editors |
14 |
# required for clang completion in editors |
15 |
@@ -364,7 +364,7 @@ if (CMAKE_COMPILER_IS_GNUCC OR APPLE) |
15 |
@@ -377,7 +377,7 @@ if (CMAKE_COMPILER_IS_GNUCC OR APPLE) |
16 |
endif () |
16 |
endif () |
17 |
|
17 |
|
18 |
if (CMAKE_COMPILER_IS_CLANG) |
18 |
if (CMAKE_COMPILER_IS_CLANG) |
Lines 21-47
Link Here
|
21 |
set(BASE_CXX_FLAGS "${BASE_CXX_FLAGS} -stdlib=libc++") |
21 |
set(BASE_CXX_FLAGS "${BASE_CXX_FLAGS} -stdlib=libc++") |
22 |
add_definitions("-Wno-deprecated-declarations") |
22 |
add_definitions("-Wno-deprecated-declarations") |
23 |
else () |
23 |
else () |
24 |
@@ -498,7 +498,11 @@ if (USE_BACKTRACE) |
24 |
@@ -483,7 +483,7 @@ else () |
25 |
if (MSVC) |
|
|
26 |
set(BT_LIBS "Dbghelp" CACHE path "Debug Helper libraries") |
27 |
else () |
28 |
- set(BT_LIBS "" CACHE path "Debug Helper libraries") |
29 |
+ if (FREEBSD) |
30 |
+ set(BT_LIBS execinfo) |
31 |
+ else () |
32 |
+ set(BT_LIBS "" CACHE path "Debug Helper libraries") |
33 |
+ endif () |
34 |
endif () |
35 |
|
25 |
|
36 |
add_definitions("-DARANGODB_ENABLE_BACKTRACE=1") |
26 |
include(VcMacros) |
37 |
@@ -573,7 +577,9 @@ endif () |
27 |
|
|
|
28 |
- option(USE_OPTIMIZE_FOR_ARCHITECTURE "try to determine CPU architecture" ON) |
29 |
+ option(USE_OPTIMIZE_FOR_ARCHITECTURE "try to determine CPU architecture" OFF) |
30 |
|
31 |
if (USE_OPTIMIZE_FOR_ARCHITECTURE) |
32 |
# mop: core2 (merom) is our absolute minimum! |
33 |
@@ -594,9 +594,7 @@ endif () |
38 |
################################################################################ |
34 |
################################################################################ |
39 |
|
35 |
|
40 |
if (NOT WINDOWS) |
36 |
if (NOT WINDOWS) |
41 |
- set(SYS_LIBS ${SYS_LIBS} resolv) |
37 |
- set(SYS_LIBS ${SYS_LIBS} resolv) |
42 |
+ if (NOT FREEBSD) |
38 |
- |
43 |
+ set(SYS_LIBS ${SYS_LIBS} resolv) |
39 |
- if (NOT DARWIN) |
44 |
+ endif () |
40 |
+ if (NOT DARWIN OR FREEBSD) |
45 |
|
|
|
46 |
if (NOT DARWIN) |
47 |
set(SYS_LIBS ${SYS_LIBS} rt) |
41 |
set(SYS_LIBS ${SYS_LIBS} rt) |
|
|
42 |
endif () |
43 |
endif () |