Skip to content

Commit

Permalink
fix missing defines
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Sep 24, 2023
1 parent d89b7cf commit 087209f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ check_function_exists(ppoll HAVE_PPOLL)
check_include_file(linux/serial.h HAVE_LINUX_SERIAL -DHAVE_LINUX_SERIAL=1)
check_include_file(dev/usb/uftdiio.h HAVE_FREEBSD_UFTDI -DHAVE_FREEBSD_UFTDI=1)

check_function_exists(argp_parse HAVE_ARGP)
if(NOT HAVE_ARGP)
check_function_exists(argp_parse HAVE_ARGP_H)
if(NOT HAVE_ARGP_H)
if(NOT ARGP_HINTS)
set(ARGP_HINTS ~/argp-standalone/src)
endif(NOT ARGP_HINTS)
Expand All @@ -83,7 +83,7 @@ if(NOT HAVE_ARGP)
message(FATAL_ERROR "argp library not available")
endif(NOT LIB_ARGP)
set(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES} ${LIB_ARGP}")
endif(NOT HAVE_ARGP)
endif(NOT HAVE_ARGP_H)

option(coverage "enable code coverage tracking." OFF)
if(NOT coverage STREQUAL OFF)
Expand Down
12 changes: 12 additions & 0 deletions config.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@
/* Defined if pthread_setname_np is available. */
#cmakedefine HAVE_PTHREAD_SETNAME_NP

/* Defined if cfsetspeed() is available. */
#cmakedefine HAVE_CFSETSPEED

/* Defined if time.h is available. */
#cmakedefine HAVE_TIME_H

/* Defined if syslog.h is available. */
#cmakedefine HAVE_SYSLOG_H

/* Defined if argp.h is available. */
#cmakedefine HAVE_ARGP_H

/* The name of package. */
#cmakedefine PACKAGE "${PACKAGE_NAME}"

Expand Down

0 comments on commit 087209f

Please sign in to comment.