Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/csync
diff options
context:
space:
mode:
authorGuido Falsi <mad@madpilot.net>2021-09-23 18:43:52 +0300
committerGuido Falsi <madpilot@freebsd.org>2021-09-29 16:46:07 +0300
commit5f036641b9a4c50d1f0b95ad7e8f3631b9c781c5 (patch)
tree1550475ef2118c0e6a469c3e296a1920326d7265 /src/csync
parent5fa08287245828bf59eef4f134b114f88bc249f9 (diff)
Add -largp on non linux systems.
Signed-off-by: Guido Falsi <madpilot@freebsd.org>
Diffstat (limited to 'src/csync')
-rw-r--r--src/csync/ConfigureChecks.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/csync/ConfigureChecks.cmake b/src/csync/ConfigureChecks.cmake
index 0910aa5b6..755f21c9b 100644
--- a/src/csync/ConfigureChecks.cmake
+++ b/src/csync/ConfigureChecks.cmake
@@ -22,6 +22,11 @@ if (NOT LINUX)
check_library_exists(rt nanosleep "" HAVE_LIBRT)
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} )
+
+ # Systems not using glibc require linker flag for argp
+ if(HAVE_ARGP_H)
+ set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} argp)
+ endif()
endif (NOT LINUX)
if(WIN32)