cmake: apply ADD_SUBDIR patch.
[blender-staging.git] / extern / CMakeLists.txt
index b81efb52de901d06ee2b68f92e96940e6f1c79f5..eeb09491ce6d9bcd6f54177688eb6c13a5400475 100644 (file)
 # ***** END GPL LICENSE BLOCK *****
 
 IF(WITH_GAMEENGINE)
-  SUBDIRS(qhull solid)
+  ADD_SUBDIRECTORY(qhull)
+  ADD_SUBDIRECTORY(solid)
 ENDIF(WITH_GAMEENGINE)
 
 IF(WITH_BULLET)
-  SUBDIRS(bullet2)
+  ADD_SUBDIRECTORY(bullet2)
 ENDIF(WITH_BULLET)
 
 IF(WITH_INTERNATIONAL)
-  SUBDIRS(bFTGL)
+  ADD_SUBDIRECTORY(bFTGL)
 ENDIF(WITH_INTERNATIONAL)
 
 IF(WITH_VERSE)
-  SUBDIRS(verse)
+  ADD_SUBDIRECTORY(verse)
 ENDIF(WITH_VERSE)
 
 IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
-  SUBDIRS(binreloc)
+  ADD_SUBDIRECTORY(binreloc)
 ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
 
-SUBDIRS(glew)
+ADD_SUBDIRECTORY(glew)
 
 IF(WITH_OPENJPEG)
-  SUBDIRS(libopenjpeg)
+  ADD_SUBDIRECTORY(libopenjpeg)
 ENDIF(WITH_OPENJPEG)