Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
5144850c
Commit
5144850c
authored
Jun 19, 2013
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1660 from trast/tr/fix-zlib-configuration
CMakeLists: fix zlib linker setup
parents
84ba4944
c41281ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
CMakeLists.txt
+4
-6
No files found.
CMakeLists.txt
View file @
5144850c
...
@@ -136,17 +136,15 @@ IF(WIN32 OR AMIGA)
...
@@ -136,17 +136,15 @@ IF(WIN32 OR AMIGA)
ENDIF
()
ENDIF
()
# Optional external dependency: zlib
# Optional external dependency: zlib
IF
(
NOT ZLIB_LIBRARY
)
# It's optional, but FIND_PACKAGE gives a warning that looks more like an
# It's optional, but FIND_PACKAGE gives a warning that looks more like an
# error.
# error.
FIND_PACKAGE
(
ZLIB QUIET
)
FIND_PACKAGE
(
ZLIB QUIET
)
ENDIF
()
IF
(
ZLIB_FOUND
)
IF
(
ZLIB_FOUND
)
INCLUDE_DIRECTORIES
(
${
ZLIB_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
${
ZLIB_INCLUDE_DIRS
}
)
LINK_LIBRARIES
(
${
ZLIB_LIBRARIES
}
)
LINK_LIBRARIES
(
${
ZLIB_LIBRARIES
}
)
# Fake the message CMake would have shown
# Fake the message CMake would have shown
MESSAGE
(
"-- Found zlib:
${
ZLIB_LIBRARY
}
"
)
MESSAGE
(
"-- Found zlib:
${
ZLIB_LIBRARY
}
"
)
ELSE
IF
(
NOT ZLIB_LIBRARY
)
ELSE
(
)
MESSAGE
(
"zlib was not found; using bundled 3rd-party sources."
)
MESSAGE
(
"zlib was not found; using bundled 3rd-party sources."
)
INCLUDE_DIRECTORIES
(
deps/zlib
)
INCLUDE_DIRECTORIES
(
deps/zlib
)
ADD_DEFINITIONS
(
-DNO_VIZ -DSTDC -DNO_GZIP
)
ADD_DEFINITIONS
(
-DNO_VIZ -DSTDC -DNO_GZIP
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment