From 315649313e36be4f225af3640548f885ffb1bf88 Mon Sep 17 00:00:00 2001 From: klickverbot Date: Mon, 27 Sep 2010 08:30:54 +0000 Subject: [PATCH] CMake: Fixed building with Boost workaround. The path to the include directory had not been updated when the snippet was moved into the top-level CMakeLists.txt. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@820 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 02e142e79..693fc61c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,8 +27,11 @@ INSTALL( FILES "${CMAKE_BINARY_DIR}/assimp.pc" DESTINATION ${LIB_INSTALL_DIR}/pk # Globally enbale Boost resp. the Boost workaround – it is also needed by the # tools which include the Assimp headers. +SET ( ENABLE_BOOST_WORKAROUND OFF CACHE BOOL + "If a simple implementation of the used Boost functions is used. Slightly reduces functionality, but enables builds without Boost available." +) IF ( ENABLE_BOOST_WORKAROUND ) - INCLUDE_DIRECTORIES( BoostWorkaround ) + INCLUDE_DIRECTORIES( code/BoostWorkaround ) ADD_DEFINITIONS( -DASSIMP_BUILD_BOOST_WORKAROUND ) MESSAGE( STATUS "Building a non-boost version of Assimp." ) ELSE ( ENABLE_BOOST_WORKAROUND )