2
0
Эх сурвалжийг харах

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
klickverbot 15 жил өмнө
parent
commit
315649313e
1 өөрчлөгдсөн 4 нэмэгдсэн , 1 устгасан
  1. 4 1
      CMakeLists.txt

+ 4 - 1
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 )