"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cmake/Modules/FindLIBCHECK.cmake" between
ettercap-0.8.3.tar.gz and ettercap-0.8.3.1.tar.gz

About: ettercap is a multipurpose sniffer/interceptor/logger for switched LAN.

FindLIBCHECK.cmake  (ettercap-0.8.3):FindLIBCHECK.cmake  (ettercap-0.8.3.1)
# - Try to find LibCheck # - Try to find LibCheck
# Once done this will define # Once done this will define
# LIBCHECK_FOUND - System has LibCheck # LIBCHECK_FOUND - System has LibCheck
# LIBCHECK_INCLUDE_DIRS - The LibCheck include directories # LIBCHECK_INCLUDE_DIRS - The LibCheck include directories
# LIBCHECK_LIBRARIES - The libraries needed to use LibCheck # LIBCHECK_LIBRARIES - The libraries needed to use LibCheck
# LIBCHECK_DEFINITIONS - Compiler switches required for using LibCheck # LIBCHECK_DEFINITIONS - Compiler switches required for using LibCheck
find_package(PkgConfig) find_package(PkgConfig)
include(FindPkgConfig) include(FindPkgConfig)
pkg_check_modules(PC_LIBCHECK libcheck) pkg_check_modules(PC_LIBCHECK libcheck)
pkg_check_modules(PC_CHECK check) if(PC_LIBCHECK_FOUND)
set(LIBCHECK_DEFINITIONS ${PC_LIBCHECK_CFLAGS_OTHER}) set(LIBCHECK_FOUND TRUE)
find_path(LIBCHECK_INCLUDE_DIR check.h set(LIBCHECK_LDFLAGS ${PC_LIBCHECK_LDFLGAS})
HINTS ${PC_LIBCHECK_INCLUDEDIR} ${PC_LIBCHECK_INCLUDE_DIRS}) set(LIBCHECK_LIBRARIES ${PC_LIBCHECK_LIBRARIES})
set(LIBCHECK_INCLUDE_DIRS ${PC_LIBCHECK_INCLUDE_DIR})
else()
pkg_check_modules(PC_CHECK check)
if(PC_CHECK_FOUND)
set(LIBCHECK_FOUND TRUE)
set(LIBCHECK_LDFLAGS ${PC_CHECK_LDFLGAS})
set(LIBCHECK_LIBRARIES ${PC_CHECK_LIBRARIES})
set(LIBCHECK_INCLUDE_DIRS ${PC_CHECK_INCLUDE_DIR})
else()
set(LIBCHECK_DEFINITIONS ${PC_LIBCHECK_CFLAGS_OTHER})
find_path(LIBCHECK_INCLUDE_DIR check.h
HINTS ${PC_LIBCHECK_INCLUDEDIR} ${PC_LIBCHECK_INCLUDE_DIRS})
find_library(LIBCHECK_LIBRARY NAMES check libcheck find_library(LIBCHECK_LIBRARY NAMES check libcheck
HINTS ${PC_LIBCHECK_LIBDIR} ${PC_LIBCHECK_LIBRARY_DIRS}) HINTS ${PC_LIBCHECK_LIBDIR} ${PC_LIBCHECK_LIBRARY_DIRS})
include(FindPackageHandleStandardArgs) if(LIBCHECK_LIBRARY_FOUND)
# handle the QUIETLY and REQUIRED arguments and set LIBCHECK_FOUND to TRUE set(LIBCHECK_FOUND TRUE)
# if all listed variables are TRUE set(LIBCHECK_LIBRARIES ${LIBCHECK_LIBRARY})
find_package_handle_standard_args(LIBCHECK DEFAULT_MSG else()
LIBCHECK_LIBRARY LIBCHECK_INCLUDE_DIR) include(FindPackageHandleStandardArgs)
if(LIBCHECK_FOUND) # handle the QUIETLY and REQUIRED arguments and set LIBCHECK_FOUND to TRUE
set(LIBCHECK_LDFLAGS ${PC_CHECK_LIBRARIES} ${PC_LIBCHECK_LIBRARIES} ${PC_CHECK # if all listed variables are TRUE
_LDFLAGS} ${PC_LIBCHECK_LDFLGAS}) find_package_handle_standard_args(LIBCHECK DEFAULT_MSG
set(LIBCHECK_LIBRARIES ${LIBCHECK_LIBRARY}) LIBCHECK_LIBRARY LIBCHECK_INCLUDE_DIR)
set(LIBCHECK_INCLUDE_DIRS ${LIBCHECK_INCLUDE_DIR}) if(LIBCHECK_FOUND)
set(LIBCHECK_LIBRARIES ${LIBCHECK_LIBRARY})
set(LIBCHECK_INCLUDE_DIRS ${LIBCHECK_INCLUDE_DIR})
endif()
endif()
endif()
endif() endif()
mark_as_advanced(LIBCHECK_INCLUDE_DIR LIBCHECK_LIBRARY) mark_as_advanced(LIBCHECK_INCLUDE_DIR LIBCHECK_LIBRARY)
 End of changes. 3 change blocks. 
16 lines changed or deleted 33 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)