yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10109
[Branch ~yade-pkg/yade/git-trunk] Rev 3705: Explicitly link ZLIB-library
------------------------------------------------------------
revno: 3705
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Wed 2013-10-09 07:37:48 +0200
message:
Explicitly link ZLIB-library
See https://answers.launchpad.net/yade/+question/237009
modified:
CMakeLists.txt
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2013-10-08 11:28:19 +0000
+++ CMakeLists.txt 2013-10-09 05:37:48 +0000
@@ -79,6 +79,7 @@
INCLUDE_DIRECTORIES(${LOKI_INCLUDE_DIR})
FIND_PACKAGE(Eigen3 REQUIRED)
FIND_PACKAGE(BZip2 REQUIRED)
+FIND_PACKAGE(ZLIB REQUIRED)
#===========================================================
SET(DEFAULT ON CACHE INTERNAL "Default value for enabled by default options")
@@ -104,7 +105,8 @@
ENDIF(EIGEN3_FOUND)
#===========================================================
INCLUDE_DIRECTORIES(${BZIP2_INCLUDE_DIR})
-SET(LINKLIBS "${LINKLIBS};${BZIP2_LIBRARIES};")
+INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIRS})
+SET(LINKLIBS "${LINKLIBS};${BZIP2_LIBRARIES};${ZLIB_LIBRARIES};")
#===========================================================
IF(ENABLE_VTK)
FIND_PACKAGE(VTK COMPONENTS Common)
Follow ups