mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 07:47:49 +08:00
62850c28d0
* Don't depend on default features * Use OpenEXR config * Try to skip non-portable check_cxx_source_runs * Ensure PKG_CONFIG_USE_CMAKE_PREFIX_PATH * Use link libraries from pkg-config * Revise feature-to-CMake mapping * Update versions
24 lines
786 B
CMake
24 lines
786 B
CMake
cmake_policy(PUSH)
|
|
cmake_policy(SET CMP0012 NEW)
|
|
cmake_policy(SET CMP0054 NEW)
|
|
cmake_policy(SET CMP0057 NEW)
|
|
include("${CMAKE_CURRENT_LIST_DIR}/osg-targets.cmake")
|
|
include(CMakeFindDependencyMacro)
|
|
if("@OSG_TEXT_USE_FONTCONFIG@")
|
|
find_dependency(Fontconfig) # CMake 3.14
|
|
endif()
|
|
if("plugins" IN_LIST ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS)
|
|
include("${CMAKE_CURRENT_LIST_DIR}/osg-plugins.cmake")
|
|
if(TARGET unofficial::osg::osgdb_curl)
|
|
find_dependency(CURL)
|
|
endif()
|
|
if(TARGET unofficial::osg::osgdb_exr)
|
|
find_dependency(OpenEXR CONFIG)
|
|
endif()
|
|
if(TARGET unofficial::osg::osgdb_gdal OR TARGET unofficial::osg::osgdb_ogr)
|
|
find_dependency(GDAL)
|
|
endif()
|
|
endif()
|
|
set(${CMAKE_FIND_PACKAGE_NAME}_VERSION "@OSG_VER@")
|
|
cmake_policy(POP)
|