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:
authorThomas Dinges <blender@dingto.org>2012-08-04 15:39:16 +0400
committerThomas Dinges <blender@dingto.org>2012-08-04 15:39:16 +0400
commitf50bae32593c135a82277d5f4b4f72eb83a27576 (patch)
tree0cba83d8202e1c8008f457e3fedd2c599b31e3d3
parent4f410971c3e144d4404dd035f70b97271333b232 (diff)
Revert part of r49504 by Genscher:
* MSVC Paths were put into the MinGW block, so Mingw did not work anymore. * Also fix paths for vc2010 libs now, so they should work now with cmake.
-rw-r--r--CMakeLists.txt44
1 files changed, 15 insertions, 29 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 299244b119e..eb29df7d341 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -939,24 +939,17 @@ elseif(WIN32)
endif()
if(WITH_IMAGE_OPENEXR)
- set_lib_path(OPENEXR "openexr")
- set_lib_path(OPENEXR_LIBPATH "openexr/lib")
- set(OPENEXR_LIBRARIES
- ${OPENEXR_LIBPATH}/Iex.lib
- ${OPENEXR_LIBPATH}/Half.lib
- ${OPENEXR_LIBPATH}/IlmImf.lib
- ${OPENEXR_LIBPATH}/Imath.lib
- ${OPENEXR_LIBPATH}/IlmThread.lib
- )
- set_lib_path(OPENEXR_INCUDE "openexr/include")
- set(OPENEXR_INCLUDE_DIRS
- ${OPENEXR_INCUDE}
- ${OPENEXR_INCUDE}/IlmImf
- ${OPENEXR_INCUDE}/Iex
- ${OPENEXR_INCUDE}/Imath
- )
- unset(OPENEXR_INCUDE)
- unset(OPENEXR_LIBPATH)
+ if(MSVC10)
+ set(OPENEXR ${LIBDIR}/openexr)
+ set(OPENEXR_INCLUDE_DIRS ${OPENEXR}/vc2010/include)
+ set(OPENEXR_LIBRARIES Half IlmImf Imath IlmThread Iex)
+ set(OPENEXR_LIBPATH ${OPENEXR}/vc2010/lib)
+ else()
+ set(OPENEXR ${LIBDIR}/openexr)
+ set(OPENEXR_INCLUDE_DIRS ${OPENEXR}/include)
+ set(OPENEXR_LIBRARIES Half IlmImf Imath IlmThread Iex)
+ set(OPENEXR_LIBPATH ${OPENEXR}/lib)
+ endif()
endif()
if(WITH_IMAGE_TIFF)
@@ -1119,17 +1112,10 @@ elseif(WIN32)
endif()
if(WITH_IMAGE_OPENEXR)
- if(MSVC10)
- set(OPENEXR ${LIBDIR}/openexr)
- set(OPENEXR_INCLUDE_DIRS ${OPENEXR}/include/vc_10)
- set(OPENEXR_LIBRARIES Half IlmImf Imath IlmThread Iex)
- set(OPENEXR_LIBPATH ${OPENEXR}/lib/vc_10)
- else()
- set(OPENEXR ${LIBDIR}/openexr)
- set(OPENEXR_INCLUDE_DIRS ${OPENEXR}/include)
- set(OPENEXR_LIBRARIES Half IlmImf Imath IlmThread Iex)
- set(OPENEXR_LIBPATH ${OPENEXR}/lib)
- endif()
+ set(OPENEXR ${LIBDIR}/openexr)
+ set(OPENEXR_INCLUDE_DIRS ${OPENEXR}/include/OpenEXR)
+ set(OPENEXR_LIBRARIES Half IlmImf Imath IlmThread Iex)
+ set(OPENEXR_LIBPATH ${OPENEXR}/lib)
endif()
if(WITH_IMAGE_TIFF)