Fix include path search.

This commit is contained in:
Klaas Freitag 2012-10-05 17:13:23 +02:00
parent e0a21ebfd6
commit 7e1c58b602

View file

@ -1,7 +1,7 @@
IF(EXISTS "${CMAKE_SOURCE_DIR}/../csync/src/csync.h") IF(EXISTS "${CMAKE_SOURCE_DIR}/../csync/src/csync.h")
SET(CSYNC_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/../csync/src/) SET(CSYNC_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/../csync/src/)
ELSE() ELSE()
FIND_PATH(CSYNC_INCLUDE_PATH NAMES ocsync/csync.h csync.h HINTS $ENV{CSYNC_DIR} ) FIND_PATH(CSYNC_INCLUDE_PATH NAMES csync.h HINTS $ENV{CSYNC_DIR} )
ENDIF() ENDIF()
IF(EXISTS "${CMAKE_SOURCE_DIR}/../buildcsync/src/") IF(EXISTS "${CMAKE_SOURCE_DIR}/../buildcsync/src/")