Removed
Link Here
|
1 |
--- cmake/os/FreeBSD.cmake.orig 2013-09-27 00:09:44.000000000 +0300 |
2 |
+++ cmake/os/FreeBSD.cmake 2013-09-27 00:09:57.000000000 +0300 |
3 |
@@ -24,9 +24,10 @@ |
4 |
# ADD_DEFINITIONS(-DHAVE_BROKEN_REALPATH) |
5 |
|
6 |
# Find libexecinfo (library that contains backtrace_symbols etc) |
7 |
-INCLUDE_DIRECTORIES(/usr/local/include) |
8 |
-SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} /usr/local/include ) |
9 |
-SET(ENV{LIB} "$ENV{LIB}:/usr/local/lib") |
10 |
+SET(EXECINFO_ROOT /usr/local CACHE INTERNAL "Where to find execinfo library and header") |
11 |
+INCLUDE_DIRECTORIES(${EXECINFO_ROOT}/include) |
12 |
+SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${EXECINFO_ROOT}/include) |
13 |
+SET(ENV{LIB} "$ENV{LIB}:${EXECINFO_ROOT}/lib") |
14 |
FIND_LIBRARY(EXECINFO NAMES execinfo) |
15 |
IF(EXECINFO) |
16 |
SET(LIBEXECINFO ${EXECINFO}) |