We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b925b47 commit f08ddf8Copy full SHA for f08ddf8
CMakeLists.txt
@@ -78,7 +78,10 @@ set(ARGP_LIBS "")
78
check_function_exists(argp_parse HAVE_ARGP_PARSE)
79
if(NOT HAVE_ARGP_PARSE)
80
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
81
- check_library_exists(argp argp_parse "/usr/local/lib" ARGP)
+ find_library(FBSD_ARGP_PATH NAMES argp PATHS "/usr/local/lib" "/usr/lib")
82
+ if(FBSD_ARGP_PATH)
83
+ check_library_exists(${FBSD_ARGP_PATH} argp_parse "" ARGP)
84
+ endif()
85
else()
86
check_library_exists(argp argp_parse "" ARGP)
87
endif()
0 commit comments