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

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/modules/FindCsync.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmake/modules/FindCsync.cmake b/cmake/modules/FindCsync.cmake
index 2d66f6e21..4207c67f1 100644
--- a/cmake/modules/FindCsync.cmake
+++ b/cmake/modules/FindCsync.cmake
@@ -6,10 +6,12 @@ ENDIF()
IF( DEFINED CSYNC_LIBRARY_PATH AND DEFINED CSYNC_INCLUDE_PATH )
IF( WIN32 )
- SET(CSYNC_LIBRARY ${CMAKE_SOURCE_DIR}/src/libocsync.dll)
- ELSE( WIN32 )
- SET(CSYNC_LIBRARY ${CSYNC_LIBRARY}/src/libocsync.so)
- ENDIF( WIN32 )
+ SET(CSYNC_LIBRARY ${CSYNC_LIBRARY_PATH}/src/libocsync.dll)
+ ELSEIF ( APPLE )
+ SET(CSYNC_LIBRARY ${CSYNC_LIBRARY_PATH}/src/libocsync.dylib)
+ ELSE()
+ SET(CSYNC_LIBRARY ${CSYNC_LIBRARY_PATH}/src/libocsync.so)
+ ENDIF( )
ELSE()
FIND_LIBRARY(CSYNC_LIBRARY NAMES ocsync HINTS $ENV{CSYNC_DIR})
ENDIF()