1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-12 18:02:08 +00:00

since shl_log.h does not include config.h, define BUILD_ENABLE_DEBUG through add_definitions() instead of config.h.cmake

This commit is contained in:
Derek Dai 2016-08-11 17:37:59 +08:00
parent 99ed3efd88
commit 6dd107a2fd
2 changed files with 4 additions and 2 deletions

View file

@ -16,6 +16,10 @@ OPTION(BUILD_ENABLE_DEBUG "Enable Debug" ON )
OPTION(RELY_UDEV "Rely in udev tag to select device" OFF ) OPTION(RELY_UDEV "Rely in udev tag to select device" OFF )
OPTION(BUILD_TESTS "Enable TEST" ON ) OPTION(BUILD_TESTS "Enable TEST" ON )
if(BUILD_ENABLE_DEBUG)
add_definitions(-DBUILD_ENABLE_DEBUG)
endif()
find_package(PkgConfig) find_package(PkgConfig)
pkg_check_modules (GLIB2 REQUIRED glib-2.0) pkg_check_modules (GLIB2 REQUIRED glib-2.0)
pkg_check_modules (UDEV REQUIRED libudev) pkg_check_modules (UDEV REQUIRED libudev)

View file

@ -1,8 +1,6 @@
#ifndef CONFIG_H #ifndef CONFIG_H
#define CONFIG_H #define CONFIG_H
#cmakedefine BUILD_ENABLE_DEBUG
#cmakedefine BUILD_BINDIR "@BUILD_BINDIR@" #cmakedefine BUILD_BINDIR "@BUILD_BINDIR@"
#cmakedefine PACKAGE_STRING "@PACKAGE_STRING@" #cmakedefine PACKAGE_STRING "@PACKAGE_STRING@"