Mailinglist Archive: zypp-commit (301 mails)

< Previous Next >
[zypp-commit] r7660 - /trunk/sat-solver/cmake/modules/FindEXPAT.cmake
  • From: dmacvicar@xxxxxxxxxxxxxxxx
  • Date: Fri, 26 Oct 2007 14:35:30 -0000
  • Message-id: <20071026143531.196841738E@xxxxxxxxxxxxxxxx>
Author: dmacvicar
Date: Fri Oct 26 16:35:30 2007
New Revision: 7660

URL: http://svn.opensuse.org/viewcvs/zypp?rev=7660&view=rev
Log:
this is not in old cmake (10.2) add it so it works for everyone

Added:
trunk/sat-solver/cmake/modules/FindEXPAT.cmake

Added: trunk/sat-solver/cmake/modules/FindEXPAT.cmake
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/cmake/modules/FindEXPAT.cmake?rev=7660&view=auto
==============================================================================
--- trunk/sat-solver/cmake/modules/FindEXPAT.cmake (added)
+++ trunk/sat-solver/cmake/modules/FindEXPAT.cmake Fri Oct 26 16:35:30 2007
@@ -0,0 +1,38 @@
+# - Find expat
+# Find the native EXPAT headers and libraries.
+#
+# EXPAT_INCLUDE_DIRS - where to find expat.h, etc.
+# EXPAT_LIBRARIES - List of libraries when using expat.
+# EXPAT_FOUND - True if expat found.
+
+# Look for the header file.
+FIND_PATH(EXPAT_INCLUDE_DIR NAMES expat.h)
+MARK_AS_ADVANCED(EXPAT_INCLUDE_DIR)
+
+# Look for the library.
+FIND_LIBRARY(EXPAT_LIBRARY NAMES expat)
+MARK_AS_ADVANCED(EXPAT_LIBRARY)
+
+# Copy the results to the output variables.
+IF(EXPAT_INCLUDE_DIR AND EXPAT_LIBRARY)
+ SET(EXPAT_FOUND 1)
+ SET(EXPAT_LIBRARIES ${EXPAT_LIBRARY})
+ SET(EXPAT_INCLUDE_DIRS ${EXPAT_INCLUDE_DIR})
+ELSE(EXPAT_INCLUDE_DIR AND EXPAT_LIBRARY)
+ SET(EXPAT_FOUND 0)
+ SET(EXPAT_LIBRARIES)
+ SET(EXPAT_INCLUDE_DIRS)
+ENDIF(EXPAT_INCLUDE_DIR AND EXPAT_LIBRARY)
+
+# Report the results.
+IF(NOT EXPAT_FOUND)
+ SET(EXPAT_DIR_MESSAGE
+ "EXPAT was not found. Make sure EXPAT_LIBRARY and EXPAT_INCLUDE_DIR are
set.")
+ IF(NOT EXPAT_FIND_QUIETLY)
+ MESSAGE(STATUS "${EXPAT_DIR_MESSAGE}")
+ ELSE(NOT EXPAT_FIND_QUIETLY)
+ IF(EXPAT_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "${EXPAT_DIR_MESSAGE}")
+ ENDIF(EXPAT_FIND_REQUIRED)
+ ENDIF(NOT EXPAT_FIND_QUIETLY)
+ENDIF(NOT EXPAT_FOUND)

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages