mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-09 04:51:58 +00:00
CMake: check for getopt_long_only() instead of just getopt()
so behaviour of CLI same general: AIX compat, suppress some warnings
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Copyright (C) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
||||
# Copyright (C) 2009-2023 Robin Stuart <rstuart114@gmail.com>
|
||||
# Copyright (C) 2009-2024 Robin Stuart <rstuart114@gmail.com>
|
||||
# vim: set ts=4 sw=4 et :
|
||||
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
@@ -139,8 +139,8 @@ if(APPLE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
check_function_exists(getopt HAVE_GETOPT)
|
||||
if(NOT HAVE_GETOPT)
|
||||
check_function_exists(getopt_long_only HAVE_GETOPT_LONG_ONLY)
|
||||
if(NOT HAVE_GETOPT_LONG_ONLY)
|
||||
add_subdirectory(getopt)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user