add cmake option WITH_SYSTEM_OPENJPEG so linux can build cycles without having libope...
[blender.git] / extern / CMakeLists.txt
index 67a899082e2b433e308711867aa05936618f27e1..b5f94c06d4c25d9eb0c14f88d85654eec22e1005 100644 (file)
@@ -48,7 +48,7 @@ if(WITH_GAMEENGINE)
        add_subdirectory(recastnavigation)
 endif()
 
-if(WITH_IMAGE_OPENJPEG AND (NOT UNIX OR APPLE))
+if(WITH_IMAGE_OPENJPEG AND (NOT WITH_SYSTEM_OPENJPEG))
        add_subdirectory(libopenjpeg)
 endif()