mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 06:29:07 +08:00
47d206e149
* [many ports] improve compatibility with WSL and mixed case filesystems * [treehopper] express dependency on libusb, which was not working on non-win32 platforms and is still broken there * [libharu] add compatibility with non-win32 platforms * [geogram] fix openblas on linux [clapack] better integration with linux environment [visit-struct] put cmake config file in the expected folder [geogram] remove trailing underscore to enable compatibility with OpenBLAS * [openblas] playing with underscore, without success * [openblas/lapack] fix library integration * [clapack] improve target handling in cmake module * [openblas] promote self-generated config to default cmake module, otherwise internal ones thinks wrongly that openblas can also solve lapack libs * [clapack,openblas] improve libraries integration * [many ports] fix cmake unnecessary target paths, wrong config paths, empty default dependencies, unnecessary [core] tags * [suitesparse] improve integration with new lapack/openblas mechanism * [suitesparse] add no underscore postfix also for linux * [ceres] fix integration with newer openblas/lapack configs * [aws-c-event-stream] fix regression * [systemc] fix regression * [libwebp,geogram] trigger rebuild * [libwebp,pthread4w] fix regressions * [glbinding] fix cmake module installation * [globjects] disentangle unnecessary dependency from qt5 * [jasper] remove broken and unnecessary patches * [libwebp] fix regression * [many ports] avoid using BUILD_SHARED_LIBS which is uninitialized in port files * [clapack] correctly find dlls * [clapack] use a generic blas as dependency * [fizz,g2o] restore expected version * fix mistake * [many ports] remove WIN32, APPLE and UNIX (again, they keep creeping in) from ports since they are broken and usually break non-win32 ports * [libressl,openssl] do not try to build one if the other is already installed * [itk] update ref and patch to avoid regression * [libressl,openssl] implement full strategy to fix CI * [libwebp] disable components that are broken on macOS * [ogre] enable macOS build * [freeimage,jxrlib,ogre,openexr,protobuf] port patches from #5169 * [ogre] add missing install command * [ffmpeg] enable wrapper for cmake module * [ffmpeg] add avresample module finder * [ffmpeg] improve module detection and exported symbols * [ffmpeg] add variables to cache * [thrift] remove unnecessary build option * [allegro5] fix shared/static inversion * [protobuf] cleanup * [libressl] cleanup * [moos-core] cleanup * commented features must not be separated from other features, otherwise vcpkg complains * [itk] fix regression * [shogun,itk] fix regressions * [ogre] fix regression * [opusfile] add compatibility with non-win32 * [itk] fix regression * [sndfile,libsndfile] remove duplicate, redirect sndfile to libsndfile * add missing dependencies * [ismrmrd] fix regression * [ffmpeg] trigger rebuild * [clapack,openblas,libogg] fix regressions on macOS * [libtins] fix regression * force rebuild windows regressions, unable to reproduce locally * [mosquitto] enable non-win32 builds * [json-dto] force rebuild, unable to reproduce regression locally * [many ports] uniform naming and path length requests * fix regression * fix regression * [ffmpeg] fixes for downstream projects * clean up - thanks to reviewers * trigger rebuild of regressions on macOS * trigger rebuild of regressions on macOS - part2 * Add core back * Use VCPKG_CONCURRENCY * Add core back to suitesparse * Add core back to curl * Add core back to magnum * Add core back to magnum * Add core back to magnum * Add core back to cgal
95 lines
3.5 KiB
CMake
95 lines
3.5 KiB
CMake
include(FindPackageHandleStandardArgs)
|
|
|
|
find_path(OpenEXR_INCLUDE_DIRS OpenEXR/OpenEXRConfig.h)
|
|
find_path(OPENEXR_INCLUDE_PATHS NAMES ImfRgbaFile.h PATH_SUFFIXES OpenEXR)
|
|
|
|
file(STRINGS "${OpenEXR_INCLUDE_DIRS}/OpenEXR/OpenEXRConfig.h" OPENEXR_CONFIG_H)
|
|
|
|
string(REGEX REPLACE "^.*define OPENEXR_VERSION_MAJOR ([0-9]+).*$" "\\1" OpenEXR_VERSION_MAJOR "${OPENEXR_CONFIG_H}")
|
|
string(REGEX REPLACE "^.*define OPENEXR_VERSION_MINOR ([0-9]+).*$" "\\1" OpenEXR_VERSION_MINOR "${OPENEXR_CONFIG_H}")
|
|
set(OpenEXR_LIB_SUFFIX "${OpenEXR_VERSION_MAJOR}_${OpenEXR_VERSION_MINOR}")
|
|
|
|
include(SelectLibraryConfigurations)
|
|
|
|
if(NOT OpenEXR_BASE_LIBRARY)
|
|
find_library(OpenEXR_BASE_LIBRARY_RELEASE NAMES IlmImf-${OpenEXR_LIB_SUFFIX})
|
|
find_library(OpenEXR_BASE_LIBRARY_DEBUG NAMES IlmImf-${OpenEXR_LIB_SUFFIX}_d)
|
|
select_library_configurations(OpenEXR_BASE)
|
|
endif()
|
|
|
|
if(NOT OpenEXR_UTIL_LIBRARY)
|
|
find_library(OpenEXR_UTIL_LIBRARY_RELEASE NAMES IlmImfUtil-${OpenEXR_LIB_SUFFIX})
|
|
find_library(OpenEXR_UTIL_LIBRARY_DEBUG NAMES IlmImfUtil-${OpenEXR_LIB_SUFFIX}_d)
|
|
select_library_configurations(OpenEXR_UTIL)
|
|
endif()
|
|
|
|
if(NOT OpenEXR_HALF_LIBRARY)
|
|
find_library(OpenEXR_HALF_LIBRARY_RELEASE NAMES Half-${OpenEXR_LIB_SUFFIX})
|
|
find_library(OpenEXR_HALF_LIBRARY_DEBUG NAMES Half-${OpenEXR_LIB_SUFFIX}_d)
|
|
select_library_configurations(OpenEXR_HALF)
|
|
endif()
|
|
|
|
if(NOT OpenEXR_IEX_LIBRARY)
|
|
find_library(OpenEXR_IEX_LIBRARY_RELEASE NAMES Iex-${OpenEXR_LIB_SUFFIX})
|
|
find_library(OpenEXR_IEX_LIBRARY_DEBUG NAMES Iex-${OpenEXR_LIB_SUFFIX}_d)
|
|
select_library_configurations(OpenEXR_IEX)
|
|
endif()
|
|
|
|
if(NOT OpenEXR_MATH_LIBRARY)
|
|
find_library(OpenEXR_MATH_LIBRARY_RELEASE NAMES Imath-${OpenEXR_LIB_SUFFIX})
|
|
find_library(OpenEXR_MATH_LIBRARY_DEBUG NAMES Imath-${OpenEXR_LIB_SUFFIX}_d)
|
|
select_library_configurations(OpenEXR_MATH)
|
|
endif()
|
|
|
|
if(NOT OpenEXR_THREAD_LIBRARY)
|
|
find_library(OpenEXR_THREAD_LIBRARY_RELEASE NAMES IlmThread-${OpenEXR_LIB_SUFFIX})
|
|
find_library(OpenEXR_THREAD_LIBRARY_DEBUG NAMES IlmThread-${OpenEXR_LIB_SUFFIX}_d)
|
|
select_library_configurations(OpenEXR_THREAD)
|
|
endif()
|
|
|
|
if(NOT OpenEXR_IEXMATH_LIBRARY)
|
|
find_library(OpenEXR_IEXMATH_LIBRARY_RELEASE NAMES IexMath-${OpenEXR_LIB_SUFFIX})
|
|
find_library(OpenEXR_IEXMATH_LIBRARY_DEBUG NAMES IexMath-${OpenEXR_LIB_SUFFIX}d)
|
|
select_library_configurations(OpenEXR_IEXMATH)
|
|
endif()
|
|
|
|
set(OPENEXR_HALF_LIBRARY "${OpenEXR_HALF_LIBRARY}")
|
|
set(OPENEXR_Half_LIBRARY "${OpenEXR_HALF_LIBRARY}")
|
|
set(OPENEXR_IEX_LIBRARY "${OpenEXR_IEX_LIBRARY}")
|
|
set(OPENEXR_Iex_LIBRARY "${OpenEXR_IEX_LIBRARY}")
|
|
set(OPENEXR_IMATH_LIBRARY "${OpenEXR_MATH_LIBRARY}")
|
|
set(OPENEXR_ILMIMF_LIBRARY "${OpenEXR_BASE_LIBRARY}")
|
|
set(OPENEXR_IlmImf_LIBRARY "${OpenEXR_BASE_LIBRARY}")
|
|
set(OPENEXR_ILMIMFUTIL_LIBRARY "${OpenEXR_UTIL_LIBRARY}")
|
|
set(OPENEXR_ILMTHREAD_LIBRARY "${OpenEXR_THREAD_LIBRARY}")
|
|
|
|
set(OpenEXR_LIBRARY "${OpenEXR_BASE_LIBRARY}")
|
|
|
|
set(OpenEXR_LIBRARIES
|
|
${OpenEXR_LIBRARY}
|
|
${OpenEXR_MATH_LIBRARY}
|
|
${OpenEXR_IEXMATH_LIBRARY}
|
|
${OpenEXR_UTIL_LIBRARY}
|
|
${OpenEXR_HALF_LIBRARY}
|
|
${OpenEXR_IEX_LIBRARY}
|
|
${OpenEXR_THREAD_LIBRARY}
|
|
)
|
|
|
|
set(OPENEXR_LIBRARIES
|
|
${OPENEXR_HALF_LIBRARY}
|
|
${OPENEXR_IEX_LIBRARY}
|
|
${OPENEXR_IMATH_LIBRARY}
|
|
${OPENEXR_ILMIMF_LIBRARY}
|
|
${OPENEXR_ILMTHREAD_LIBRARY}
|
|
)
|
|
|
|
set(OpenEXR_INCLUDE_DIR ${OpenEXR_INCLUDE_DIRS})
|
|
set(OPENEXR_INCLUDE_DIRS ${OpenEXR_INCLUDE_DIRS})
|
|
set(OPENEXR_INCLUDE_DIR ${OPENEXR_INCLUDE_PATHS})
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenEXR REQUIRED_VARS OpenEXR_LIBRARIES OpenEXR_INCLUDE_DIRS)
|
|
|
|
if(OpenEXR_FOUND)
|
|
set(OPENEXR_FOUND 1)
|
|
endif()
|