Skip to content

Commit

Permalink
libuwsc-1.1 required
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Jan 23, 2018
1 parent b9f74ac commit fa08867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/Modules/FindLibuwsc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ find_path(LIBUWSC_INCLUDE_DIR uwsc)
find_library(LIBUWSC_LIBRARY uwsc PATH_SUFFIXES lib64)

if(LIBUWSC_INCLUDE_DIR)
file(STRINGS "${LIBUWSC_INCLUDE_DIR}/uwsc/uwsc.h"
file(STRINGS "${LIBUWSC_INCLUDE_DIR}/uwsc/config.h"
LIBUWSC_VERSION_MAJOR REGEX "^#define[ \t]+UWSC_VERSION_MAJOR[ \t]+[0-9]+")
file(STRINGS "${LIBUWSC_INCLUDE_DIR}/uwsc/uwsc.h"
file(STRINGS "${LIBUWSC_INCLUDE_DIR}/uwsc/config.h"
LIBUWSC_VERSION_MINOR REGEX "^#define[ \t]+UWSC_VERSION_MINOR[ \t]+[0-9]+")
string(REGEX REPLACE "[^0-9]+" "" LIBUWSC_VERSION_MAJOR "${LIBUWSC_VERSION_MAJOR}")
string(REGEX REPLACE "[^0-9]+" "" LIBUWSC_VERSION_MINOR "${LIBUWSC_VERSION_MINOR}")
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(RTTY_VERSION_PATCH 0)

# Check the third party Libraries
find_package(Libubox REQUIRED)
find_package(Libuwsc REQUIRED)
find_package(Libuwsc 1.1 REQUIRED)

include_directories(${CMAKE_CURRENT_BINARY_DIR} ${LIBUWSC_INCLUDE_DIR} ${LIBUBOX_INCLUDE_DIR})
set(EXTRA_LIBS ${LIBUWSC_LIBRARY} ${LIBUBOX_LIBRARY} blobmsg_json util)
Expand Down

0 comments on commit fa08867

Please sign in to comment.