Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r373 - swig/SwigInterface


Chronological Thread 
  • From: bigler@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r373 - swig/SwigInterface
  • Date: Thu, 9 Jun 2005 21:21:01 -0600 (MDT)

Author: bigler
Date: Thu Jun  9 21:21:00 2005
New Revision: 373

Modified:
   swig/SwigInterface/CMakeLists.txt
Log:

Some syntax fixes for a different version of swig/cmake.  Don't use
the CMAKE_SWIG_FLAGS variable.  Don't use -includeall, it can cause
weird side effects with not finding GCC includes (stdarg.h and stuff).


Modified: swig/SwigInterface/CMakeLists.txt
==============================================================================
--- swig/SwigInterface/CMakeLists.txt   (original)
+++ swig/SwigInterface/CMakeLists.txt   Thu Jun  9 21:21:00 2005
@@ -6,16 +6,19 @@
 
 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
 
-SET(CMAKE_SWIG_FLAGS "")
-
 SET_SOURCE_FILES_PROPERTIES(example.i PROPERTIES CPLUSPLUS ON)
-SET_SOURCE_FILES_PROPERTIES(example.i PROPERTIES SWIG_FLAGS "-includeall")
+
+# OK, some versions of CMAKE need you to specify the SWIG_FLAGS
+# parameter.  You can't use a variable set to "", because that will
+# get replaced with a null string and the SET_SOURCE_FILES_PROPERTIES
+# macro will barf.
+SET_SOURCE_FILES_PROPERTIES(example.i PROPERTIES SWIG_FLAGS "")
 SWIG_ADD_MODULE(example python
   example.i example.cc)
 SWIG_LINK_LIBRARIES(example ${PYTHON_LIBRARIES})
 
 SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES CPLUSPLUS ON)
-#SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES SWIG_FLAGS "-includeall")
+SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES SWIG_FLAGS "")
 
 SWIG_ADD_MODULE(manta python manta.i manta.cc)
 




  • [MANTA] r373 - swig/SwigInterface, bigler, 06/09/2005

Archive powered by MHonArc 2.6.16.

Top of page