[#21753] allowing to compile on FreeBSD 8.0
[blender.git] / extern / CMakeLists.txt
index 44e47aaf88d4fa3c415b5b916fabf5fde86dfa3f..35271d24a2d4945bdc1f20fd73e4fbf155c75ed7 100644 (file)
@@ -38,5 +38,10 @@ IF(WITH_OPENJPEG)
        ADD_SUBDIRECTORY(libopenjpeg)
 ENDIF(WITH_OPENJPEG)
 
-ADD_SUBDIRECTORY(lzo)
-ADD_SUBDIRECTORY(lzma)
+IF(WITH_LZO)
+       ADD_SUBDIRECTORY(lzo)
+ENDIF(WITH_LZO)
+
+IF(WITH_LZMA)
+       ADD_SUBDIRECTORY(lzma)
+ENDIF(WITH_LZMA)