aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2018-05-17 17:28:33 -0700
committerGitHub <noreply@github.com>2018-05-17 17:28:33 -0700
commitf2341b9245d130a92ba7d921c9a93119814d60c5 (patch)
treeb111c62e3e3b620f1907224e61a70800d0b701ef /ports
parenta4b4f0ddfa990cb32feb443c6f8e208197ca5197 (diff)
parentf35ff4c8bc0fbe52a3c5c78f74f7c33e550b12e1 (diff)
downloadvcpkg-f2341b9245d130a92ba7d921c9a93119814d60c5.tar.gz
vcpkg-f2341b9245d130a92ba7d921c9a93119814d60c5.zip
Merge pull request #3522 from KindDragon/openexr-linux
[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