From f4e95ea85ced9a1ae476dcbf6cf737ab03694dde Mon Sep 17 00:00:00 2001 From: Nicolas Hake Date: Fri, 23 Jan 2015 17:11:23 +0100 Subject: [PATCH] Use find_package for finding libbz2 instead of hard-coding the path --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 867560ae0..98565de0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1237,10 +1237,10 @@ endforeach() ############################################################################ if (APPLE) - # for good measure - seems to be part of default OSX installation # linking with static freetype library requires it - target_link_libraries(openclonk "/usr/lib/libbz2.dylib") + find_package("BZip2" REQUIRED) + target_link_libraries(openclonk ${BZIP2_LIBRARIES}) set(HAVE_RVALUE_REF ON) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -std=c++0x -g -Wall -fobjc-arc")