yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10104
[Branch ~yade-pkg/yade/git-trunk] Rev 3703: Explicitly link BZip2-library
------------------------------------------------------------
revno: 3703
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Tue 2013-10-08 13:28:19 +0200
message:
Explicitly link BZip2-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-09-30 16:52:38 +0000
+++ CMakeLists.txt 2013-10-08 11:28:19 +0000
@@ -78,6 +78,7 @@
FIND_PACKAGE(Loki REQUIRED)
INCLUDE_DIRECTORIES(${LOKI_INCLUDE_DIR})
FIND_PACKAGE(Eigen3 REQUIRED)
+FIND_PACKAGE(BZip2 REQUIRED)
#===========================================================
SET(DEFAULT ON CACHE INTERNAL "Default value for enabled by default options")
@@ -102,6 +103,9 @@
SET(CONFIGURED_FEATS "${CONFIGURED_FEATS} Eigen3")
ENDIF(EIGEN3_FOUND)
#===========================================================
+INCLUDE_DIRECTORIES(${BZIP2_INCLUDE_DIR})
+SET(LINKLIBS "${LINKLIBS};${BZIP2_LIBRARIES};")
+#===========================================================
IF(ENABLE_VTK)
FIND_PACKAGE(VTK COMPONENTS Common)
IF(VTK_FOUND)