forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mapnik] update port (microsoft#20824)
* update mapnik * version
- Loading branch information
1 parent
0cdde69
commit a79d4a8
Showing
5 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 47bbaa1..43f384d 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -296,9 +296,14 @@ if(USE_WEBP) | ||
endif() | ||
|
||
if(USE_CAIRO) | ||
- mapnik_find_package(Cairo REQUIRED) | ||
+ if(WIN32) | ||
+ mapnik_find_package(Cairo REQUIRED) | ||
+ list(APPEND MAPNIK_OPTIONAL_LIBS Cairo::Cairo) | ||
+ else() | ||
+ pkg_check_modules(Cairo REQUIRED IMPORTED_TARGET cairo) | ||
+ list(APPEND MAPNIK_OPTIONAL_LIBS PkgConfig::Cairo) | ||
+ endif() | ||
list(APPEND MAPNIK_COMPILE_DEFS HAVE_CAIRO) | ||
- list(APPEND MAPNIK_OPTIONAL_LIBS Cairo::Cairo) | ||
endif() | ||
|
||
if(USE_PROJ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters