Fix for prev. commmit

This commit is contained in:
Daniel Molkentin 2012-10-10 14:19:29 +02:00
parent d599c4532c
commit aa63a789dc

View file

@ -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()