aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVollstrecker <werner@vollstreckernet.de>2024-12-02 15:09:17 +0100
committerMark Adler <madler@alumni.caltech.edu>2025-01-31 19:59:10 -0800
commitf0175c69e216545ff543b1f46870d1c1a27aa5f0 (patch)
tree1a9a7dcf97d4f63eebce70cdf30bcf78b9008112
parent633ec876779b32f777e33574b65e41d2bbdec72f (diff)
downloadzlib-f0175c69e216545ff543b1f46870d1c1a27aa5f0.tar.gz
zlib-f0175c69e216545ff543b1f46870d1c1a27aa5f0.tar.bz2
zlib-f0175c69e216545ff543b1f46870d1c1a27aa5f0.zip
CMake: Add INSTALL_INTERFACE for a proper export.
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index efa0ef4..3b24374 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,7 +96,8 @@ if(ZLIB_BUILD_SHARED)
96 $<$<OR:$<BOOL:${WIN32}>,$<BOOL:${CYGWIN}>>:win32/zlib1.rc>) 96 $<$<OR:$<BOOL:${WIN32}>,$<BOOL:${CYGWIN}>>:win32/zlib1.rc>)
97 target_include_directories(zlib PUBLIC 97 target_include_directories(zlib PUBLIC
98 $<BUILD_INTERFACE:${zlib_BINARY_DIR}> 98 $<BUILD_INTERFACE:${zlib_BINARY_DIR}>
99 $<BUILD_INTERFACE:${zlib_SOURCE_DIR}>) 99 $<BUILD_INTERFACE:${zlib_SOURCE_DIR}>
100 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
100 target_compile_definitions(zlib 101 target_compile_definitions(zlib
101 PRIVATE 102 PRIVATE
102 $<$<BOOL:${HAVE_OFF64_T}>:_LARGEFILE64_SOURCE=1> 103 $<$<BOOL:${HAVE_OFF64_T}>:_LARGEFILE64_SOURCE=1>
@@ -129,7 +130,8 @@ if(ZLIB_BUILD_STATIC)
129 ${ZLIB_PRIVATE_HDRS}) 130 ${ZLIB_PRIVATE_HDRS})
130 target_include_directories(zlibstatic PUBLIC 131 target_include_directories(zlibstatic PUBLIC
131 $<BUILD_INTERFACE:${zlib_BINARY_DIR}> 132 $<BUILD_INTERFACE:${zlib_BINARY_DIR}>
132 $<BUILD_INTERFACE:${zlib_SOURCE_DIR}>) 133 $<BUILD_INTERFACE:${zlib_SOURCE_DIR}>
134 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
133 target_compile_definitions(zlibstatic 135 target_compile_definitions(zlibstatic
134 PRIVATE 136 PRIVATE
135 $<$<BOOL:NOT:${HAVE_FSEEKO}>:NO_FSEEKO> 137 $<$<BOOL:NOT:${HAVE_FSEEKO}>:NO_FSEEKO>