Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 349bbe23ac0..7d60bb70ab5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -933,8 +933,15 @@ if(WITH_RAYOPTIMIZATION)
endif()
if(WITH_IMAGE_OPENJPEG)
- set(OPENJPEG ${CMAKE_SOURCE_DIR}/extern/libopenjpeg)
- set(OPENJPEG_INC ${OPENJPEG})
+ if(UNIX AND NOT APPLE)
+ set(OPENJPEG /usr)
+ set(OPENJPEG_INC ${OPENJPEG}/include)
+ set(OPENJPEG_LIB openjpeg)
+ set(OPENJPEG_LIBPATH ${OPENJPEG}/lib)
+ else()
+ set(OPENJPEG ${CMAKE_SOURCE_DIR}/extern/libopenjpeg)
+ set(OPENJPEG_INC ${OPENJPEG})
+ endif()
endif()
if(WITH_IMAGE_REDCODE)