Revision: 6611
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6611&view=rev
Author:   gbiggs
Date:     2008-06-16 19:43:27 -0700 (Mon, 16 Jun 2008)

Log Message:
-----------
Fixed check for round function

Modified Paths:
--------------
    code/player/trunk/cmake/internal/SearchForStuff.cmake

Modified: code/player/trunk/cmake/internal/SearchForStuff.cmake
===================================================================
--- code/player/trunk/cmake/internal/SearchForStuff.cmake       2008-06-17 
02:12:12 UTC (rev 6610)
+++ code/player/trunk/cmake/internal/SearchForStuff.cmake       2008-06-17 
02:43:27 UTC (rev 6611)
@@ -10,7 +10,6 @@
 CHECK_LIBRARY_EXISTS (ltdl lt_dlopenext "" HAVE_LIBLTDL)
 CHECK_INCLUDE_FILES (linux/joystick.h HAVE_LINUX_JOYSTICK_H)
 CHECK_FUNCTION_EXISTS (poll HAVE_POLL)
-CHECK_FUNCTION_EXISTS (round HAVE_ROUND)
 CHECK_INCLUDE_FILES (stdint.h HAVE_STDINT_H)
 CHECK_INCLUDE_FILES (strings.h HAVE_STRINGS_H)
 CHECK_INCLUDE_FILES (dns_sd.h HAVE_DNS_SD)
@@ -18,6 +17,12 @@
     CHECK_LIBRARY_EXISTS (dns_sd DNSServiceRefDeallocate "" HAVE_DNS_SD)
 ENDIF (HAVE_DNS_SD)
 
+SET (CMAKE_REQUIRED_INCLUDES math.h)
+SET (CMAKE_REQUIRED_LIBRARIES m)
+CHECK_FUNCTION_EXISTS (round HAVE_ROUND)
+SET (CMAKE_REQUIRED_INCLUDES)
+SET (CMAKE_REQUIRED_LIBRARIES)
+
 CHECK_LIBRARY_EXISTS (jpeg jpeg_read_header "" HAVE_LIBJPEG)
 CHECK_INCLUDE_FILES ("stdio.h;jpeglib.h" HAVE_JPEGLIB_H)
 IF (HAVE_LIBJPEG AND HAVE_JPEGLIB_H)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to