[wxwidgets] Disable cotire on OSX due to appleclang

This commit is contained in:
Robert Schumacher 2019-01-08 15:35:20 -08:00
parent bdc430c8ec
commit d931d74c11
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: wxwidgets
Version: 3.1.2
Version: 3.1.2-1
Description: wxWidgets is a widget toolkit and tools library for creating graphical user interfaces (GUIs) for cross-platform applications.
Build-Depends: zlib, libpng, tiff, expat

View File

@ -8,6 +8,11 @@ vcpkg_from_github(
PATCHES disable-platform-lib-dir.patch
)
set(OPTIONS)
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(OPTIONS -DCOTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES=9999)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@ -20,10 +25,13 @@ vcpkg_configure_cmake(
-DwxUSE_LIBTIFF=sys
-DwxUSE_STL=ON
-DwxBUILD_DISABLE_PLATFORM_LIB_DIR=ON
${OPTIONS}
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/lib/*.dll")
if(DLLS)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/bin)