projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f03664
)
Check for argp library before depending on it.
author
Guido Falsi
<madpilot@freebsd.org>
Wed, 29 Sep 2021 13:42:28 +0000
(15:42 +0200)
committer
Guido Falsi
<madpilot@freebsd.org>
Wed, 29 Sep 2021 13:46:07 +0000
(15:46 +0200)
Signed-off-by: Guido Falsi <madpilot@freebsd.org>
src/csync/ConfigureChecks.cmake
patch
|
blob
|
history
diff --git
a/src/csync/ConfigureChecks.cmake
b/src/csync/ConfigureChecks.cmake
index 755f21c9b2848ca0ed7a43f78d8a8661f08eafb1..64bdf1770ee6f42129ad41daf3bad81e76b8175d 100644
(file)
--- a/
src/csync/ConfigureChecks.cmake
+++ b/
src/csync/ConfigureChecks.cmake
@@
-24,7
+24,8
@@
if (NOT LINUX)
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} )
# Systems not using glibc require linker flag for argp
- if(HAVE_ARGP_H)
+ check_library_exists(argp argp_parse "" HAVE_LIBARGP)
+ if(HAVE_ARGP_H AND HAVE_LIBARGP)
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} argp)
endif()
endif (NOT LINUX)