19 lines
497 B
Diff
19 lines
497 B
Diff
--- 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 ()
|
|
|