From 99ed3efd8801f638772d6e1c05f120a80f2551b7 Mon Sep 17 00:00:00 2001 From: Derek Dai Date: Wed, 10 Aug 2016 17:11:01 +0800 Subject: [PATCH 1/2] fix typo in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a4dfb8..0e03657 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,7 @@ Steps to use it as peer: 4. Locate them using scanning - > psp-scan + > p2p-scan 5. Apart from list, or show info with peer <mac> there's nothing useful here by now. For a Q&D see [Using as peer](https://github.com/albfan/miraclecast/issues/4) From 6dd107a2fdf8093ba9fa8b22d4e3c32e620a962b Mon Sep 17 00:00:00 2001 From: Derek Dai Date: Thu, 11 Aug 2016 17:37:59 +0800 Subject: [PATCH 2/2] since shl_log.h does not include config.h, define BUILD_ENABLE_DEBUG through add_definitions() instead of config.h.cmake --- CMakeLists.txt | 4 ++++ config.h.cmake | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a04350f..6aea926 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,10 @@ OPTION(BUILD_ENABLE_DEBUG "Enable Debug" ON ) OPTION(RELY_UDEV "Rely in udev tag to select device" OFF ) OPTION(BUILD_TESTS "Enable TEST" ON ) +if(BUILD_ENABLE_DEBUG) + add_definitions(-DBUILD_ENABLE_DEBUG) +endif() + find_package(PkgConfig) pkg_check_modules (GLIB2 REQUIRED glib-2.0) pkg_check_modules (UDEV REQUIRED libudev) diff --git a/config.h.cmake b/config.h.cmake index dd6b763..ddc0cd1 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1,8 +1,6 @@ #ifndef CONFIG_H #define CONFIG_H -#cmakedefine BUILD_ENABLE_DEBUG - #cmakedefine BUILD_BINDIR "@BUILD_BINDIR@" #cmakedefine PACKAGE_STRING "@PACKAGE_STRING@"