From 61df46a4bf1d3c0d17d8dc4be65827fa5dfee0e7 Mon Sep 17 00:00:00 2001 From: Florian Becker Date: Fri, 15 Nov 2024 00:54:19 +0100 Subject: [PATCH] Fix external dependencies --- cmake/external/icu.cmake | 2 +- cmake/external/zlib.cmake | 40 ++++++++++++++++++++++++++------------- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/cmake/external/icu.cmake b/cmake/external/icu.cmake index b9c094f..25b8438 100644 --- a/cmake/external/icu.cmake +++ b/cmake/external/icu.cmake @@ -60,7 +60,7 @@ else() set(ICU_ARCH 64) endif() endif() - if(CMAKE_BUILD_TYPE STREQUAL "Debug") + if(CMAKE_BUILD_TYPE STREQUAL Debug) set(ICU_I18N_LIBRARY ${ICU_SRC}/src/ICU/lib${ICU_ARCH}/icuind.lib) set(ICU_UC_LIBRARY ${ICU_SRC}/src/ICU/lib${ICU_ARCH}/icuucd.lib) set(ICU_I18N_DLL ${ICU_SRC}/src/ICU/bin${ICU_ARCH}/icuin76d.dll) diff --git a/cmake/external/zlib.cmake b/cmake/external/zlib.cmake index b59c4b2..91829e5 100644 --- a/cmake/external/zlib.cmake +++ b/cmake/external/zlib.cmake @@ -1,16 +1,31 @@ # -# Copyright (C) 09/07/2022 VX APPS +# Copyright (c) 2022 Florian Becker (VX APPS). +# All rights reserved. # -# This document is property of VX APPS. It is strictly prohibited -# to modify, sell or publish it in any way. In case you have access -# to this document, you are obligated to ensure its nondisclosure. -# Noncompliances will be prosecuted. +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: # -# Diese Datei ist Eigentum der VX APPS. Jegliche Änderung, Verkauf -# oder andere Verbreitung und Veröffentlichung ist strikt untersagt. -# Falls Sie Zugang zu dieser Datei haben, sind Sie verpflichtet, -# alles in Ihrer Macht stehende für deren Geheimhaltung zu tun. -# Zuwiderhandlungen werden strafrechtlich verfolgt. +# 1. Redistributions of source code must retain the above copyright notice, this +# list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# 3. Neither the name of the copyright holder nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # include(ExternalProject) @@ -19,14 +34,14 @@ set(ZLIB_SRC ${CMAKE_BINARY_DIR}/_deps/zlib-src) set(ZLIB_INSTALL ${CMAKE_BINARY_DIR}/_deps/zlib-install) if(UNIX) set(ZLIB_LIBRARY ${ZLIB_INSTALL}/lib/libz.a) - set(ZLIB_OS_ARGS -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}) else() - if(CMAKE_BUILD_TYPE STREQUAL "Debug") + if(CMAKE_BUILD_TYPE STREQUAL Debug) set(ZLIB_LIBRARY ${ZLIB_INSTALL}/lib/zlibstaticd.lib) else() set(ZLIB_LIBRARY ${ZLIB_INSTALL}/lib/zlibstatic.lib) endif() endif() +set(ZLIB_OS_ARGS -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}) set(ZLIB_INCLUDE_DIR ${ZLIB_INSTALL}/include) ExternalProject_Add(ZLIB @@ -44,7 +59,6 @@ ExternalProject_Add(ZLIB INSTALL_DIR ${ZLIB_INSTALL} BUILD_BYPRODUCTS ${ZLIB_LIBRARY} UPDATE_COMMAND "" - PATCH_COMMAND patch -t < ${CMAKE_SOURCE_DIR}/cmake/patches/zlib.patch ) # We cannot use find_library because ExternalProject_Add() is performed at build time.