Commit 25ae8e58 authored by Dave Moxey's avatar Dave Moxey

Fix issue with third-party boost cmake configuration

parent b455f4b2
......@@ -65,8 +65,9 @@ IF (THIRDPARTY_BUILD_BOOST)
INCLUDE(ExternalProject)
# Only build the libraries we need
STRING(REPLACE ";" " --with-" BOOST_LIB_LIST "${NEEDED_BOOST_LIBS}")
SET(BOOST_LIB_LIST "--with-${BOOST_LIB_LIST}")
FOREACH(boostlib ${NEEDED_BOOST_LIBS})
LIST(APPEND BOOST_LIB_LIST --with-${boostlib})
ENDFOREACH()
IF (NOT WIN32)
# We need -fPIC for 64-bit builds
......@@ -86,9 +87,9 @@ IF (THIRDPARTY_BUILD_BOOST)
ELSEIF (MSVC12)
SET(TOOLSET msvc-12.0)
ENDIF()
ELSE(APPLE)
ELSE()
SET(TOOLSET gcc)
ENDIF(APPLE)
ENDIF()
IF (NOT WIN32)
EXTERNALPROJECT_ADD(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment