From 872f59fea509e8c8b65357a32e1a3733cf00ce21 Mon Sep 17 00:00:00 2001 From: dehnert Date: Thu, 22 Nov 2012 19:06:05 +0100 Subject: [PATCH] Added flag to CMakeLists.txt to enable setting the name of libboost_program_options as it has an additional suffix under Mac OS. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 095283e69..98c97cdd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,12 +117,15 @@ else() endif() if(Boost_FOUND) - set(BOOST_PROGRAM_OPTIONS_LIBRARY "boost_program_options") + if (NOT BOOST_PROGRAM_OPTIONS_LIBRARY) + set(BOOST_PROGRAM_OPTIONS_LIBRARY "boost_program_options") + endif() include_directories(${Boost_INCLUDE_DIRS}) if ((NOT Boost_LIBRARY_DIRS) OR ("${Boost_LIBRARY_DIRS}" STREQUAL "")) set(Boost_LIBRARY_DIRS "${Boost_INCLUDE_DIRS}/stage/lib") endif () + link_directories(${Boost_LIBRARY_DIRS}) endif(Boost_FOUND)