Module: sems Branch: master Commit: f41e692056d7723a3adbf044013b6d49034302b5 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=f41e692056d7723a3adbf044013b6d49034302b5
Author: Peter Lemenkov <[email protected]> Committer: Peter Lemenkov <[email protected]> Date: Sat Oct 2 22:03:11 2010 +0400 Fix searching for libev includes Signed-off-by: Peter Lemenkov <[email protected]> --- apps/jsonrpc/CMakeLists.txt | 1 + cmake/FindLibev.cmake | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/apps/jsonrpc/CMakeLists.txt b/apps/jsonrpc/CMakeLists.txt index 7bda7c7..ea8a62f 100644 --- a/apps/jsonrpc/CMakeLists.txt +++ b/apps/jsonrpc/CMakeLists.txt @@ -6,6 +6,7 @@ RpcServerLoop.cpp RpcServerThread.cpp ) +ADD_DEFINITIONS(-I${LIBEV_INCLUDE_DIR}) SET(sems_module_name jsonrpc) SET(sems_module_libs ${sems_module_libs} ev) INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt) diff --git a/cmake/FindLibev.cmake b/cmake/FindLibev.cmake index 4d09bd0..fd90af6 100644 --- a/cmake/FindLibev.cmake +++ b/cmake/FindLibev.cmake @@ -1,4 +1,4 @@ -FIND_PATH(LIBEV_INCLUDE_DIR libev/ev.h) +FIND_PATH(LIBEV_INCLUDE_DIR ev.h HINTS /usr/include/libev ) FIND_LIBRARY(LIBEV_LIBRARIES NAMES ev) IF(LIBEV_INCLUDE_DIR AND LIBEV_LIBRARIES) _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
