disable some conflicting options WITH_PYTHON_MODULE
authorCampbell Barton <ideasman42@gmail.com>
Tue, 22 Feb 2011 14:27:46 +0000 (14:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 22 Feb 2011 14:27:46 +0000 (14:27 +0000)
CMakeLists.txt

index 6ce17f5d88bce0ec69efdc48a593e138713d758b..68a1b0e6fae5a4ae4bfe6a9f6163ee0108b771f8 100644 (file)
@@ -159,6 +159,15 @@ if(NOT WITH_IMAGE_OPENJPEG AND WITH_IMAGE_REDCODE)
        message(FATAL_ERROR "WITH_IMAGE_REDCODE requires WITH_IMAGE_OPENJPEG")
 endif()
 
+# python module, needs some different options
+if(WITH_PYTHON_MODULE AND WITH_PLAYER)
+       message(FATAL_ERROR "WITH_PYTHON_MODULE requires WITH_PLAYER to be OFF")
+endif()
+
+if(WITH_PYTHON_MODULE AND WITH_PYTHON_INSTALL)
+       message(FATAL_ERROR "WITH_PYTHON_MODULE requires WITH_PYTHON_INSTALL to be OFF")
+endif()
+
 TEST_SSE_SUPPORT()
 
 #-----------------------------------------------------------------------------