Revision: 6725
          http://playerstage.svn.sourceforge.net/playerstage/?rev=6725&view=rev
Author:   gbiggs
Date:     2008-07-01 20:08:52 -0700 (Tue, 01 Jul 2008)

Log Message:
-----------
Added checks for Solaris and QNX

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

Modified: code/player/trunk/cmake/internal/FindOS.cmake
===================================================================
--- code/player/trunk/cmake/internal/FindOS.cmake       2008-07-02 02:36:38 UTC 
(rev 6724)
+++ code/player/trunk/cmake/internal/FindOS.cmake       2008-07-02 03:08:52 UTC 
(rev 6725)
@@ -4,6 +4,8 @@
 STRING (REGEX MATCH "Linux" PLAYER_OS_LINUX ${CMAKE_SYSTEM_NAME})
 # Nor *BSD
 STRING (REGEX MATCH "BSD" PLAYER_OS_BSD ${CMAKE_SYSTEM_NAME})
+# Or Solaris. I'm seeing a trend, here
+STRING (REGEX MATCH "Solaris" PLAYER_OS_SOLARIS ${CMAKE_SYSTEM_NAME})
 
 # Windows is easy (for once)
 IF (WIN32)
@@ -19,6 +21,11 @@
     ENDIF (NOT PLAYER_OS_OSX)
 ENDIF (APPLE)
 
+# QNX
+IF (QNXNTO)
+    SET (PLAYER_OS_QNX TRUE BOOL INTERNAL)
+ENDIF (QNXNTO)
+
 IF (PLAYER_OS_LINUX)
     MESSAGE (STATUS "Operating system is Linux")
 ELSEIF (PLAYER_OS_BSD)
@@ -29,6 +36,10 @@
     MESSAGE (STATUS "Operating system is Apple MacOS X")
 ELSEIF (PLAYER_OS_MACOS)
     MESSAGE (STATUS "Operating system is Apple MacOS (not OS X)")
+ELSEIF (PLAYER_OS_QNX)
+    MESSAGE (STATUS "Operating system is QNX")
+ELSEIF (PLAYER_OS_SOLARIS)
+    MESSAGE (STATUS "Operating system is Solaris")
 ELSE (PLAYER_OS_LINUX)
     MESSAGE (STATUS "Operating system is generic Unix")
 ENDIF (PLAYER_OS_LINUX)
\ No newline at end of file


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

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to