stop cmake from overwriting BOOST_ROOT and OPENIMAGEIO_ROOT_DIR which the builder is supposed to be able to set.

This commit is contained in:
Campbell Barton
2011-11-08 18:15:53 +00:00
parent 8cfc17c7cd
commit 4292fa702f

View File

@@ -502,13 +502,19 @@ if(UNIX AND NOT APPLE)
endif()
if(WITH_BOOST)
set(BOOST "/usr" CACHE PATH "Boost Directory")
if(NOT BOOST_CUSTOM)
set(BOOST_ROOT ${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)
endif()
set(BOOST_INCLUDE_DIR ${Boost_INCLUDE_DIRS})
set(BOOST_LIBRARIES ${Boost_LIBRARIES})
@@ -517,8 +523,6 @@ if(UNIX AND NOT APPLE)
endif()
if(WITH_OPENIMAGEIO)
set(OPENIMAGEIO "/usr" CACHE PATH "OpenImageIO Directory")
find_package(OpenImageIO)
set(OPENIMAGEIO_LIBRARIES ${OPENIMAGEIO_LIBRARIES} ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${TIFF_LIBRARY} ${OPENEXR_LIBRARIES} ${ZLIB_LIBRARIES} ${BOOST_LIBRARIES})