Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
1 files changed, 5 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 21f5ffb2f47..6b26d99c9bd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -503,18 +503,11 @@ if(UNIX AND NOT APPLE)
if(WITH_BOOST)
- # not sure this is needed, commenting, campbell
- # ---
- # set(BOOST "/usr" CACHE PATH "Boost Directory")
- #
- # if(NOT BOOST_CUSTOM)
- # set(BOOST_ROOT ${BOOST})
- # set(Boost_USE_MULTITHREADED ON)
- # find_package(Boost 1.34 COMPONENTS filesystem regex system thread)
- # endif()
-
- set(Boost_USE_MULTITHREADED ON)
- find_package(Boost 1.34 COMPONENTS filesystem regex system thread)
+ # uses in build instructions to override include and library variables
+ if(NOT BOOST_CUSTOM)
+ set(Boost_USE_MULTITHREADED ON)
+ find_package(Boost 1.34 COMPONENTS filesystem regex system thread)
+ endif()
set(BOOST_INCLUDE_DIR ${Boost_INCLUDE_DIRS})
set(BOOST_LIBRARIES ${Boost_LIBRARIES})