[sword-svn] r2758 - in trunk: . bindings

greg.hellings at crosswire.org greg.hellings at crosswire.org
Fri Jan 4 14:34:37 MST 2013


Author: greg.hellings
Date: 2013-01-04 14:34:37 -0700 (Fri, 04 Jan 2013)
New Revision: 2758

Added:
   trunk/bindings/CMakeLists.txt
Modified:
   trunk/CMakeLists.txt
Log:
Pull CMake bindings treatment up a level.

Allow CMake bindings to be determined at the generic bindings level
so that later support can be added for non-swig bindings if desired.

Modified: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	2013-01-04 21:34:15 UTC (rev 2757)
+++ trunk/CMakeLists.txt	2013-01-04 21:34:37 UTC (rev 2758)
@@ -231,7 +231,7 @@
 #
 
 IF(NOT SWORD_BINDINGS STREQUAL "" AND SWORD_BINDINGS)
-	ADD_SUBDIRECTORY("${CMAKE_CURRENT_SOURCE_DIR}/bindings/swig")
+	ADD_SUBDIRECTORY("${CMAKE_CURRENT_SOURCE_DIR}/bindings")
 ENDIF(NOT SWORD_BINDINGS STREQUAL "" AND SWORD_BINDINGS)
 
 ##############################################################################################

Added: trunk/bindings/CMakeLists.txt
===================================================================
--- trunk/bindings/CMakeLists.txt	                        (rev 0)
+++ trunk/bindings/CMakeLists.txt	2013-01-04 21:34:37 UTC (rev 2758)
@@ -0,0 +1,5 @@
+IF(SWORD_BINDINGS MATCHES ".*Python.*"
+   OR SWORD_BINDINGS MATCHES ".*Perl.*")
+	ADD_SUBDIRECTORY("${CMAKE_CURRENT_SOURCE_DIR}/swig")
+ENDIF(SWORD_BINDINGS MATCHES ".*Python.*"
+      OR SWORD_BINDINGS MATCHES ".*Perl.*")




More information about the sword-cvs mailing list