patch from IRIE Shinsuke, use systems openjpeg on *nix.
[blender.git] / extern / CMakeLists.txt
index cdbfa3e0dff841ebd65d38fedad7bb6a1c190424..52b804b7bfc3c5a853d70faef28b62c36d42ae9a 100644 (file)
@@ -37,7 +37,7 @@ endif()
 
 add_subdirectory(glew)
 
-if(WITH_IMAGE_OPENJPEG)
+if(WITH_IMAGE_OPENJPEG AND (NOT UNIX OR APPLE))
        add_subdirectory(libopenjpeg)
 endif()