Revision: 7612
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7612&view=rev
Author:   gbiggs
Date:     2009-05-01 12:17:18 +0000 (Fri, 01 May 2009)

Log Message:
-----------
Link in replacement getopt to pmaptest if the system doesn't provide one.

Modified Paths:
--------------
    code/player/trunk/utils/pmap/CMakeLists.txt

Modified: code/player/trunk/utils/pmap/CMakeLists.txt
===================================================================
--- code/player/trunk/utils/pmap/CMakeLists.txt 2009-05-01 07:53:14 UTC (rev 
7611)
+++ code/player/trunk/utils/pmap/CMakeLists.txt 2009-05-01 12:17:18 UTC (rev 
7612)
@@ -32,7 +32,12 @@
                 INCLUDE_DIRECTORIES (${GLUT_INCLUDE_DIR})
             ENDIF (GLUT_FOUND)
 
-            PLAYER_ADD_EXECUTABLE (pmaptest ${pmaptestSrcs})
+            IF (NOT HAVE_GETOPT)
+                INCLUDE_DIRECTORIES (${PROJECT_SOURCE_DIR}/replace)
+                SET (getoptSrc ${PROJECT_SOURCE_DIR}/replace/getopt.c)
+            ENDIF (NOT HAVE_GETOPT)
+
+            PLAYER_ADD_EXECUTABLE (pmaptest ${pmaptestSrcs} ${getoptSrc})
             TARGET_LINK_LIBRARIES (pmaptest pmap lodo)
             IF (GLUT_FOUND)
                 TARGET_LINK_LIBRARIES (pmaptest ${OPENGL_LIBRARIES} 
${GLUT_LIBRARIES})


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

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to