summaryrefslogtreecommitdiffstats
path: root/main/midori/execinfo-detect.patch
blob: 8bb9bceb2a0c6a79064655c37f06c7c9ed13e042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- ./CMakeLists.txt.orig	2014-04-21 08:00:30.090231380 +0000
+++ ./CMakeLists.txt	2014-04-21 08:02:48.048579861 +0000
@@ -102,13 +102,8 @@
 endif ()
 
 # Check if execinfo.h header exists
-string(FIND ${CMAKE_SYSTEM_NAME} "BSD" BEGIN)
-if (${BEGIN} GREATER 0)
-    string(SUBSTRING ${CMAKE_SYSTEM_NAME} ${BEGIN} 3 BSD)
-else()
-    set(BSD 0)
-endif()
-if (UNIX AND NOT BSD AND NOT DFLY)
+find_file (EXECINFO execinfo.h)
+if (EXECINFO)
     set(VALAFLAGS ${VALAFLAGS} -D HAVE_EXECINFO_H)
 endif ()