mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-23 03:26:56 -04:00
#219 frontend cmake: compile bundled getopt if not available, props Schaich Alonso
This commit is contained in:
parent
ed3cc51a46
commit
045c0bae56
1 changed files with 9 additions and 1 deletions
|
@ -2,7 +2,15 @@
|
|||
|
||||
project(zint_frontend)
|
||||
|
||||
set(zint_frontend_SRCS main.c )
|
||||
include(CheckFunctionExists)
|
||||
|
||||
check_function_exists(getopt HAVE_GETOPT)
|
||||
|
||||
set(zint_frontend_SRCS main.c)
|
||||
|
||||
if(NOT HAVE_GETOPT)
|
||||
set(zint_frontend_SRCS ${zint_frontend_SRCS} getopt.c getopt1.c)
|
||||
endif(NOT HAVE_GETOPT)
|
||||
|
||||
include_directories(BEFORE "${CMAKE_SOURCE_DIR}/backend")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue