mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-28 13:40:24 +00:00
[hdf5] Set wrapper policy for older dependent libraries
This commit is contained in:
parent
e2ec029af2
commit
8bd9e3a976
@ -1,4 +1,7 @@
|
||||
|
||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.3)
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(SET CMP0057 NEW)
|
||||
if(NOT "CONFIG" IN_LIST ARGS AND NOT "NO_MODULE" IN_LIST ARGS AND "HDF5" IN_LIST ARGS)
|
||||
# The caller hasn't said "CONFIG", so they want the built-in FindHDF5.cmake behavior. Set configurations macros to ensure the built-in script finds us.
|
||||
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
||||
@ -7,5 +10,6 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.3)
|
||||
set(HDF5_USE_STATIC_LIBRARIES OFF)
|
||||
endif()
|
||||
endif()
|
||||
cmake_policy(POP)
|
||||
endif()
|
||||
_find_package(${ARGS})
|
||||
|
Loading…
Reference in New Issue
Block a user