From 6b13265560543497dd53a609561b88584963264a Mon Sep 17 00:00:00 2001 From: Francois Bleibel <bleibel@jrl006.(none)> Date: Tue, 9 Nov 2010 18:59:48 +0900 Subject: [PATCH] Declare boost include directories for proper boost detection. Sometimes, the boost install path is *different* from the default include paths! --- src/CMakeLists.txt | 2 ++ unitTesting/CMakeLists.txt | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 618d6a6..44fa1e3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,6 +25,8 @@ ENDIF (NOT (\"${CMAKE_VERBOSITY_LEVEL}\" STREQUAL \"\")) # Declare that dynamic-graph shared library is being built. ADD_DEFINITIONS(-DBUILDING_DYNAMIC_GRAPH) +# Declare boost include directories +include_directories(${Boost_INCLUDE_DIRS}) ADD_LIBRARY(${LIBRARY_NAME} SHARED diff --git a/unitTesting/CMakeLists.txt b/unitTesting/CMakeLists.txt index aca0453..f6bc161 100644 --- a/unitTesting/CMakeLists.txt +++ b/unitTesting/CMakeLists.txt @@ -13,6 +13,9 @@ # received a copy of the GNU Lesser General Public License along with # dynamic-graph. If not, see <http://www.gnu.org/licenses/>. +# Declare boost include directories +include_directories(${Boost_INCLUDE_DIRS}) + ### tests SET(tests_exe test_pool -- GitLab