From 7b554697ccc3898591d83871debdf41a6968b591 Mon Sep 17 00:00:00 2001 From: mattraykowski Date: Thu, 9 Sep 2010 06:44:01 -0600 Subject: [PATCH] merged FindLibwww.cmake --- code/CMakeModules/FindLibwww.cmake | 31 ++++++------------------------ 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/code/CMakeModules/FindLibwww.cmake b/code/CMakeModules/FindLibwww.cmake index 3dbaf1b17..422869b7d 100644 --- a/code/CMakeModules/FindLibwww.cmake +++ b/code/CMakeModules/FindLibwww.cmake @@ -57,6 +57,12 @@ MACRO(FIND_WWW_LIBRARY MYLIBRARY) /opt/lib /usr/freeware/lib64 ) + + IF(${MYLIBRARY}) + SET(LIBWWW_LIBRARIES ${LIBWWW_LIBRARIES} ${${MYLIBRARY}}) + ELSE(${MYLIBRARY}) + MESSAGE(STATUS "Warning: Libwww: Library not found: ${MYLIBRARY}") + ENDIF(${MYLIBRARY}) ENDMACRO(FIND_WWW_LIBRARY MYLIBRARY) # on eg. mac os x and arch linux, libwww sub libraries are not "inter-linked" @@ -83,30 +89,6 @@ FIND_WWW_LIBRARY(LIBWWWUTILS_LIBRARY wwwutils) FIND_WWW_LIBRARY(LIBWWWXML_LIBRARY wwwxml) FIND_WWW_LIBRARY(LIBWWWZIP_LIBRARY wwwzip) -# combine all the libraries into one variable -SET(LIBWWW_LIBRARIES - ${LIBMD5_LIBRARY} - ${LIBWWWAPP_LIBRARY} - ${LIBWWWCACHE_LIBRARY} - ${LIBWWWCORE_LIBRARY} - ${LIBWWWDIR_LIBRARY} - ${LIBWWWFILE_LIBRARY} - ${LIBWWWFTP_LIBRARY} - ${LIBWWWGOPHER_LIBRARY} - ${LIBWWWHTML_LIBRARY} - ${LIBWWWHTTP_LIBRARY} - ${LIBWWWINIT_LIBRARY} - ${LIBWWWMIME_LIBRARY} - ${LIBWWWMUX_LIBRARY} - ${LIBWWWNEWS_LIBRARY} - ${LIBWWWSTREAM_LIBRARY} - ${LIBWWWTELNET_LIBRARY} - ${LIBWWWTRANS_LIBRARY} - ${LIBWWWUTILS_LIBRARY} - ${LIBWWWXML_LIBRARY} - ${LIBWWWZIP_LIBRARY} -) - # Windows libwww version needs GNU Regex IF(WIN32) FIND_PATH(LIBWWW_REGEX_INCLUDE_DIR @@ -124,7 +106,6 @@ IF(WIN32) IF(LIBWWW_REGEX_INCLUDE_DIR) SET(LIBWWW_INCLUDE_DIR ${LIBWWW_INCLUDE_DIR} ${LIBWWW_REGEX_INCLUDE_DIR}) FIND_WWW_LIBRARY(LIBREGEX_LIBRARY gnu_regex) - SET(LIBWWW_LIBRARIES ${LIBWWW_LIBRARIES} ${LIBREGEX_LIBRARY}) ENDIF(LIBWWW_REGEX_INCLUDE_DIR) ELSE(WIN32) FIND_PACKAGE(EXPAT)