mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 07:31:36 +08:00
62 lines
1.9 KiB
Diff
62 lines
1.9 KiB
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 58c70f4..93b983d 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -358,7 +358,7 @@ configure_file(lept.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/lept.pc.in @ONLY)
|
||
|
# to resolve generator expression in OUTPUT_NAME
|
||
|
file(
|
||
|
GENERATE
|
||
|
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lept_$<CONFIG>.pc
|
||
|
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lept.pc
|
||
|
INPUT ${CMAKE_CURRENT_BINARY_DIR}/lept.pc.in)
|
||
|
|
||
|
configure_file(
|
||
|
@@ -368,7 +368,7 @@ configure_file(
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/cmake/templates/LeptonicaConfig.cmake.in
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/LeptonicaConfig.cmake @ONLY)
|
||
|
|
||
|
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lept_$<CONFIG>.pc
|
||
|
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lept.pc
|
||
|
DESTINATION lib/pkgconfig)
|
||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/LeptonicaConfig.cmake
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/LeptonicaConfig-version.cmake
|
||
|
diff --git a/cmake/Configure.cmake b/cmake/Configure.cmake
|
||
|
index da41b1b..a2d163a 100644
|
||
|
--- a/cmake/Configure.cmake
|
||
|
+++ b/cmake/Configure.cmake
|
||
|
@@ -94,7 +94,7 @@ if (JPEG_FOUND)
|
||
|
set(HAVE_LIBJPEG 1)
|
||
|
endif()
|
||
|
|
||
|
-if (OPENJPEG_SUPPORT)
|
||
|
+if (OpenJPEG_FOUND)
|
||
|
set(HAVE_LIBJP2K 1)
|
||
|
endif()
|
||
|
|
||
|
@@ -106,7 +106,7 @@ if (TIFF_FOUND)
|
||
|
set(HAVE_LIBTIFF 1)
|
||
|
endif()
|
||
|
|
||
|
-if (LIBWEBP_SUPPORT)
|
||
|
+if (WebP_FOUND)
|
||
|
set(HAVE_LIBWEBP 1)
|
||
|
set(HAVE_LIBWEBP_ANIM 1)
|
||
|
endif()
|
||
|
diff --git a/cmake/templates/LeptonicaConfig.cmake.in b/cmake/templates/LeptonicaConfig.cmake.in
|
||
|
index cee3a0f..8602931 100644
|
||
|
--- a/cmake/templates/LeptonicaConfig.cmake.in
|
||
|
+++ b/cmake/templates/LeptonicaConfig.cmake.in
|
||
|
@@ -21,10 +21,10 @@
|
||
|
# ===================================================================================
|
||
|
|
||
|
include(CMakeFindDependencyMacro)
|
||
|
-if (@OPENJPEG_SUPPORT@)
|
||
|
+if (@ENABLE_OPENJPEG@)
|
||
|
find_dependency(OpenJPEG CONFIG)
|
||
|
endif()
|
||
|
-if (@LIBWEBP_SUPPORT@)
|
||
|
+if (@ENABLE_WEBP@)
|
||
|
find_dependency(WebP @MINIMUM_WEBPMUX_VERSION@ CONFIG)
|
||
|
endif()
|
||
|
|