build_environment: build fixes for openimageio.
[blender.git] / build_files / build_environment / patches / openimageio_static_libs.diff
1 diff -Naur external_openimageio.orig/src/cmake/compiler.cmake external_openimageio/src/cmake/compiler.cmake
2 --- external_openimageio.orig/src/cmake/compiler.cmake  2018-07-31 23:45:19 -0600
3 +++ external_openimageio/src/cmake/compiler.cmake       2018-08-16 12:50:12 -0600
4 @@ -152,6 +152,7 @@
5      add_definitions (-D_CRT_NONSTDC_NO_WARNINGS)
6      add_definitions (-D_SCL_SECURE_NO_WARNINGS)
7      add_definitions (-DJAS_WIN_MSVC_BUILD)
8 +    add_definitions (-DOPJ_STATIC)
9  endif (MSVC)
10  
11  # Use ccache if found
12 --- external_openimageio.orig/CMakeLists.txt    2018-07-31 23:45:19 -0600
13 +++ external_openimageio/CMakeLists.txt 2018-08-17 15:22:56 -0600
14 @@ -169,7 +169,7 @@
15    add_subdirectory (src/iinfo)
16    add_subdirectory (src/maketx)
17    add_subdirectory (src/oiiotool)
18 -  add_subdirectory (src/testtex)
19 +# add_subdirectory (src/testtex)
20    add_subdirectory (src/iv)
21  endif ()
22