[SCM] An enhanced version of the legendary DOOM game branch, master, updated. upstream/1.9.0-beta6.9+dfsg1-3-gaa41dd1

Jon Dowland jmtd at debian.org
Mon Aug 29 17:56:27 UTC 2011


The following commit has been merged in the master branch:
commit aa41dd162ebbc77d8c5a14e8e220a77afc40c0a2
Author: Jon Dowland <jmtd at debian.org>
Date:   Sun Aug 28 20:00:40 2011 +0100

    missing file for -lm fix

diff --git a/doomsday/build/cmake/Findlibm.cmake b/doomsday/build/cmake/Findlibm.cmake
new file mode 100644
index 0000000..5b91572
--- /dev/null
+++ b/doomsday/build/cmake/Findlibm.cmake
@@ -0,0 +1,67 @@
+# - Try to find LIBM
+# Once done this will define
+#
+#  LIBM_FOUND - system has LIBM
+#  LIBM_INCLUDE_DIRS - the LIBM include directory
+#  LIBM_LIBRARIES - Link these to use LIBM
+#  LIBM_DEFINITIONS - Compiler switches required for using LIBM
+#
+#  Copyright (c) 2011 Jamie Jones <jamie_jones_au at yahoo.com.au>
+#
+#  Redistribution and use is allowed according to the terms of the
+#  GNU GPL v3
+#
+
+
+if (LIBM_LIBRARIES AND LIBM_INCLUDE_DIRS)
+  # in cache already
+  set(LIBM_FOUND TRUE)
+else (LIBM_LIBRARIES AND LIBM_INCLUDE_DIRS)
+  find_path(LIBM_INCLUDE_DIR
+    NAMES
+      math.h
+    PATHS
+      $ENV{LIBMDIR}/include
+      /usr/include
+      /usr/local/include
+      /opt/local/include
+      /sw/include
+  )
+
+  find_library(LIBM_LIBRARY
+    NAMES
+      m
+    PATHS
+      $ENV{LIBMDIR}/libs
+      /usr/lib
+      /usr/local/lib
+      /opt/local/lib
+      /sw/lib
+  )
+
+  set(LIBM_INCLUDE_DIRS
+    ${LIBM_INCLUDE_DIR}
+  )
+  set(LIBM_LIBRARIES
+    ${LIBM_LIBRARY}
+)
+
+  if (LIBM_INCLUDE_DIRS AND LIBM_LIBRARIES)
+     set(LIBM_FOUND TRUE)
+  endif (LIBM_INCLUDE_DIRS AND LIBM_LIBRARIES)
+
+  if (LIBM_FOUND)
+    if (NOT LIBM_FIND_QUIETLY)
+      message(STATUS "Found LIBM: ${LIBM_LIBRARIES}")
+    endif (NOT LIBM_FIND_QUIETLY)
+  else (LIBM_FOUND)
+    if (LIBM_FIND_REQUIRED)
+      message(FATAL_ERROR "Could not find LIBM")
+    endif (LIBM_FIND_REQUIRED)
+  endif (LIBM_FOUND)
+
+  # show the LIBM_INCLUDE_DIRS and LIBM_LIBRARIES variables only in the advanced view
+  mark_as_advanced(LIBM_INCLUDE_DIRS LIBM_LIBRARIES)
+
+endif (LIBM_LIBRARIES AND LIBM_INCLUDE_DIRS)
+

-- 
An enhanced version of the legendary DOOM game



More information about the Pkg-games-commits mailing list