mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 03:27:12 +01:00
commit
9f949f7e75
@ -252,7 +252,7 @@ if (FONTCONFIG_LIBRARY MATCHES NOTFOUND)
|
|||||||
message(FATAL_ERROR "The fontconfig library could not be found. Check to ensure that it is properly installed.")
|
message(FATAL_ERROR "The fontconfig library could not be found. Check to ensure that it is properly installed.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
if (BUILD_SHARED_LIBS)
|
||||||
add_library(cairo ${SOURCES})
|
add_library(cairo ${SOURCES})
|
||||||
# cairo produces a lot of warnings which are disabled here because they otherwise fill up the log files
|
# cairo produces a lot of warnings which are disabled here because they otherwise fill up the log files
|
||||||
target_compile_options(cairo PUBLIC "/wd4244" PUBLIC "/wd4146" PUBLIC "/wd4312" PUBLIC "/wd4267" PUBLIC "/wd4996" PUBLIC "/wd4311" PUBLIC "/wd4334" PUBLIC "/wd4101")
|
target_compile_options(cairo PUBLIC "/wd4244" PUBLIC "/wd4146" PUBLIC "/wd4312" PUBLIC "/wd4267" PUBLIC "/wd4996" PUBLIC "/wd4311" PUBLIC "/wd4334" PUBLIC "/wd4101")
|
||||||
@ -263,7 +263,7 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|||||||
LIBRARY DESTINATION bin
|
LIBRARY DESTINATION bin
|
||||||
ARCHIVE DESTINATION lib
|
ARCHIVE DESTINATION lib
|
||||||
)
|
)
|
||||||
elseif (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
else()
|
||||||
add_library(cairo-static ${SOURCES})
|
add_library(cairo-static ${SOURCES})
|
||||||
target_compile_options(cairo-static PUBLIC "/DCAIRO_WIN32_STATIC_BUILD=1")
|
target_compile_options(cairo-static PUBLIC "/DCAIRO_WIN32_STATIC_BUILD=1")
|
||||||
# cairo produces a lot of warnings which are disabled here because they otherwise fill up the log files
|
# cairo produces a lot of warnings which are disabled here because they otherwise fill up the log files
|
||||||
@ -275,8 +275,6 @@ elseif (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
ARCHIVE DESTINATION lib
|
ARCHIVE DESTINATION lib
|
||||||
)
|
)
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "VCPKG_LIBRARY_LINKAGE is not defined or has an unexpected value")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# GObject support module
|
# GObject support module
|
||||||
|
Loading…
x
Reference in New Issue
Block a user