aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorArkady Shapkin <arkady.shapkin@gmail.com>2018-05-16 17:26:45 +0300
committerArkady Shapkin <arkady.shapkin@gmail.com>2018-05-16 17:26:45 +0300
commitf35ff4c8bc0fbe52a3c5c78f74f7c33e550b12e1 (patch)
treef50b8a573f19081e8b4c32587532555e2a7c005a /ports
parent8bb28d0de4903075643a1683cad3c4e5ad89920a (diff)
downloadvcpkg-f35ff4c8bc0fbe52a3c5c78f74f7c33e550b12e1.tar.gz
vcpkg-f35ff4c8bc0fbe52a3c5c78f74f7c33e550b12e1.zip
[openexr] Fix linux build
Diffstat (limited to 'ports')
-rw-r--r--ports/openexr/fix-static-linking.patch14
-rw-r--r--ports/openexr/portfile.cmake3
2 files changed, 16 insertions, 1 deletions
diff --git a/ports/openexr/fix-static-linking.patch b/ports/openexr/fix-static-linking.patch
new file mode 100644
index 000000000..af2f067f1
--- /dev/null
+++ b/ports/openexr/fix-static-linking.patch
@@ -0,0 +1,14 @@
+diff --git a/IlmImf/CMakeLists.txt b/IlmImf/CMakeLists.txt
+index 18d90edc..21bbaa27 100644
+--- a/IlmImf/CMakeLists.txt
++++ b/IlmImf/CMakeLists.txt
+@@ -25,8 +25,8 @@ ADD_EXECUTABLE ( dwaLookups
+
+ TARGET_LINK_LIBRARIES ( dwaLookups
+ Half
+- Iex${ILMBASE_LIBSUFFIX}
+ IlmThread${ILMBASE_LIBSUFFIX}
++ Iex${ILMBASE_LIBSUFFIX}
+ ${PTHREAD_LIB}
+ )
+
diff --git a/ports/openexr/portfile.cmake b/ports/openexr/portfile.cmake
index 7e3b6603f..b02a487a9 100644
--- a/ports/openexr/portfile.cmake
+++ b/ports/openexr/portfile.cmake
@@ -13,6 +13,7 @@ vcpkg_apply_patches(SOURCE_PATH ${SOURCE_PATH}
PATCHES
"${CMAKE_CURRENT_LIST_DIR}/add-missing-export.patch"
"${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt.patch"
+ "${CMAKE_CURRENT_LIST_DIR}/fix-static-linking.patch"
)
# Ensure helper executables can run during build
@@ -20,7 +21,7 @@ set(ENV{PATH} "$ENV{PATH};${CURRENT_INSTALLED_DIR}/bin")
# In debug build buildsystem cannot locate IlmBase headers
set(VCPKG_C_FLAGS_DEBUG "${VCPKG_C_FLAGS_DEBUG}")
-set(VCPKG_CXX_FLAGS_DEBUG "${VCPKG_CXX_FLAGS_DEBUG} -I\"${CURRENT_INSTALLED_DIR}/include/OpenExr\"")
+set(VCPKG_CXX_FLAGS_DEBUG "${VCPKG_CXX_FLAGS_DEBUG} -I\"${CURRENT_INSTALLED_DIR}/include/OpenEXR\"")
vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA