1
1
#
2
- # Copyright (C) 09/07/2022 VX APPS <sales@vxapps.com>
2
+ # Copyright (c) 2022 Florian Becker <fb@vxapps.com> (VX APPS).
3
+ # All rights reserved.
3
4
#
4
- # This document is property of VX APPS. It is strictly prohibited
5
- # to modify, sell or publish it in any way. In case you have access
6
- # to this document, you are obligated to ensure its nondisclosure.
7
- # Noncompliances will be prosecuted.
5
+ # Redistribution and use in source and binary forms, with or without
6
+ # modification, are permitted provided that the following conditions are met:
8
7
#
9
- # Diese Datei ist Eigentum der VX APPS. Jegliche Änderung, Verkauf
10
- # oder andere Verbreitung und Veröffentlichung ist strikt untersagt.
11
- # Falls Sie Zugang zu dieser Datei haben, sind Sie verpflichtet,
12
- # alles in Ihrer Macht stehende für deren Geheimhaltung zu tun.
13
- # Zuwiderhandlungen werden strafrechtlich verfolgt.
8
+ # 1. Redistributions of source code must retain the above copyright notice, this
9
+ # list of conditions and the following disclaimer.
10
+ #
11
+ # 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ # this list of conditions and the following disclaimer in the documentation
13
+ # and/or other materials provided with the distribution.
14
+ #
15
+ # 3. Neither the name of the copyright holder nor the names of its
16
+ # contributors may be used to endorse or promote products derived from
17
+ # this software without specific prior written permission.
18
+ #
19
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
29
#
15
30
16
31
include (ExternalProject )
@@ -19,14 +34,14 @@ set(ZLIB_SRC ${CMAKE_BINARY_DIR}/_deps/zlib-src)
19
34
set (ZLIB_INSTALL ${CMAKE_BINARY_DIR} /_deps/zlib-install )
20
35
if (UNIX )
21
36
set (ZLIB_LIBRARY ${ZLIB_INSTALL} /lib/libz.a )
22
- set (ZLIB_OS_ARGS -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} )
23
37
else ()
24
- if (CMAKE_BUILD_TYPE STREQUAL " Debug" )
38
+ if (CMAKE_BUILD_TYPE STREQUAL Debug )
25
39
set (ZLIB_LIBRARY ${ZLIB_INSTALL} /lib/zlibstaticd.lib )
26
40
else ()
27
41
set (ZLIB_LIBRARY ${ZLIB_INSTALL} /lib/zlibstatic.lib )
28
42
endif ()
29
43
endif ()
44
+ set (ZLIB_OS_ARGS -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} )
30
45
set (ZLIB_INCLUDE_DIR ${ZLIB_INSTALL} /include )
31
46
32
47
ExternalProject_Add (ZLIB
@@ -44,7 +59,6 @@ ExternalProject_Add(ZLIB
44
59
INSTALL_DIR ${ZLIB_INSTALL}
45
60
BUILD_BYPRODUCTS ${ZLIB_LIBRARY}
46
61
UPDATE_COMMAND ""
47
- PATCH_COMMAND patch -t < ${CMAKE_SOURCE_DIR} /cmake/patches/zlib.patch
48
62
)
49
63
50
64
# We cannot use find_library because ExternalProject_Add() is performed at build time.
0 commit comments