Commit dd6c44a5 authored by Jan Möbius's avatar Jan Möbius
Browse files

More path tries

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17761 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 755aa70f
......@@ -49,11 +49,6 @@ SET(POCO_LIBRARY_DIR_MESSAGE "Set the Poco_LIBRARY_DIR cmake cache entry to the
SET(POCO_DIR_SEARCH $ENV{POCO_ROOT})
IF(POCO_DIR_SEARCH)
FILE(TO_CMAKE_PATH ${POCO_DIR_SEARCH} POCO_DIR_SEARCH)
ELSE(POCO_DIR_SEARCH)
SET(POCO_DIR_SEARCH ${POCO_ROOT})
IF(POCO_DIR_SEARCH)
FILE(TO_CMAKE_PATH ${POCO_DIR_SEARCH} POCO_DIR_SEARCH)
ENDIF(POCO_DIR_SEARCH)
ENDIF(POCO_DIR_SEARCH)
......@@ -88,7 +83,7 @@ SET(SUFFIX_FOR_LIBRARY_PATH
#
# Look for an installation.
#
FIND_PATH(Poco_INCLUDE_DIR NAMES Poco/AbstractCache.h Foundation/include/Poco/AbstractCache.h PATH_SUFFIXES ${SUFFIX_FOR_INCLUDE_PATH} PATHS
FIND_PATH(Poco_INCLUDE_DIR NAMES Foundation/include/Poco/AbstractCache.h PATH_SUFFIXES ${SUFFIX_FOR_INCLUDE_PATH} PATHS
# Look in other places.
${POCO_DIR_SEARCH}
......@@ -110,28 +105,22 @@ IF(Poco_INCLUDE_DIR)
${Poco_INCLUDE_DIR}/Net/include
${Poco_INCLUDE_DIR}/Util/include
${Poco_INCLUDE_DIR}/XML/include
${Poco_INCLUDE_DIR}/Zip/include
)
SET(Poco_FOUND 1)
ENDIF(EXISTS "${Poco_INCLUDE_DIR}")
IF ( NOT Poco_LIBRARY_DIR )
FIND_LIBRARY(Poco_LIBRARY_DIR NAMES PocoFoundation PocoFoundationd PATH_SUFFIXES ${SUFFIX_FOR_LIBRARY_PATH} PATHS
FIND_LIBRARY(Poco_LIBRARY_DIR NAMES PocoFoundation PocoFoundationd PATH_SUFFIXES ${SUFFIX_FOR_LIBRARY_PATH} PATHS
# Look in other places.
${Poco_INCLUDE_DIR}
${POCO_DIR_SEARCH}
# Look in other places.
${Poco_INCLUDE_DIR}
${POCO_DIR_SEARCH}
# Help the user find it if we cannot.
DOC "The ${POCO_LIBRARY_PATH_DESCRIPTION}"
)
GET_FILENAME_COMPONENT(Poco_LIBRARY_DIR ${Poco_LIBRARY_DIR} PATH)
endif()
# Help the user find it if we cannot.
DOC "The ${POCO_LIBRARY_PATH_DESCRIPTION}"
)
GET_FILENAME_COMPONENT(Poco_LIBRARY_DIR ${Poco_LIBRARY_DIR} PATH)
IF(Poco_INCLUDE_DIR)
SET(Poco_LIBRARY_DIRS ${Poco_LIBRARY_DIR})
message(" Poco_LIBRARY_DIRS1 : ${Poco_LIBRARY_DIRS}")
SET(Poco_LIBRARY_DIRS ${Poco_LIBRARY_DIR} CACHE PATH "Path containing the libraries " )
# Look for the poco binary path.
SET(Poco_BINARY_DIR ${Poco_INCLUDE_DIR})
......@@ -142,9 +131,6 @@ IF(Poco_INCLUDE_DIR)
ENDIF(Poco_INCLUDE_DIR)
message(" Poco_LIBRARY_DIR: ${Poco_LIBRARY_DIR}")
message(" Poco_LIBRARY_DIRS: ${Poco_LIBRARY_DIRS}")
IF(NOT Poco_FOUND)
IF(NOT Poco_FIND_QUIETLY)
MESSAGE(STATUS "Poco was not found. ${POCO_DIR_MESSAGE}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment