mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 10:29:01 +08:00
9535ae5f7d
* [libavif] Added libavif * [libavif] vcpkg x-add-version --all * [libavif] Fixed compilation error * [libavif] vcpkg x-add-version --all --overwrite-version * [libavif] Install CMake configs in static mode as well * [libavif] vcpkg x-add-version --all --overwrite-version * [libavif] Fixed port name * [libavif] vcpkg x-add-version --all --overwrite-version * [libavif] Update the CMake-related patch * [libavif] vcpkg x-add-version --all --overwrite-version
27 lines
807 B
Diff
27 lines
807 B
Diff
From 7d7fae33029d359423b26b60ea12174028ebcf3a Mon Sep 17 00:00:00 2001
|
|
From: Dmitry Baryshev <dmitrymq@gmail.com>
|
|
Date: Wed, 2 Jun 2021 21:01:59 +0300
|
|
Subject: [PATCH] Enable CMake configs in VCPKG mode
|
|
|
|
---
|
|
CMakeLists.txt | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index d773025..dd80d22 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -564,7 +564,8 @@ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
|
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
)
|
|
|
|
- if (BUILD_SHARED_LIBS)
|
|
+ # Enable CMake configs in VCPKG mode
|
|
+ if (BUILD_SHARED_LIBS OR VCPKG_TARGET_TRIPLET)
|
|
install(EXPORT ${PROJECT_NAME}-config
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
|
|
|
|
--
|
|
2.22.0.windows.1
|
|
|