mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
cmake: error when external boost is required but not found
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31096 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
92e8347613
commit
0d256167a7
@ -396,18 +396,19 @@ add_definitions(-DHAVE_ICONV=1)
|
|||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_BINARY_DIR}
|
${CMAKE_BINARY_DIR}
|
||||||
${TOP_SRC_DIR}/src)
|
${TOP_SRC_DIR}/src)
|
||||||
|
|
||||||
|
option(UseExternalBoost "Use external boost" OFF)
|
||||||
if(UseExternalBoost)
|
if(UseExternalBoost)
|
||||||
message(STATUS "Searching for boost")
|
message(STATUS "Searching for boost")
|
||||||
find_package(Boost COMPONENTS signals regex)
|
find_package(Boost COMPONENTS signals regex)
|
||||||
else()
|
if(Boost_FOUND)
|
||||||
message(STATUS "----- Using internal boost. To build with installed version use -DUseExternalBoost:BOOL=ON")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(Boost_FOUND)
|
|
||||||
message(STATUS "Boost found")
|
message(STATUS "Boost found")
|
||||||
message(STATUS "Boost-libs = ${Boost_LIBRARIES}")
|
message(STATUS "Boost-libs = ${Boost_LIBRARIES}")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Boost not found" ${Boost_ERROR_REASON})
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
message(STATUS "Boost not found" ${Boost_ERROR_REASON})
|
message(STATUS "----- Using internal boost. To build with installed version use -DUseExternalBoost:BOOL=ON")
|
||||||
add_definitions(-DBOOST_USER_CONFIG="<config.h>")
|
add_definitions(-DBOOST_USER_CONFIG="<config.h>")
|
||||||
include_directories(${TOP_SRC_DIR}/boost)
|
include_directories(${TOP_SRC_DIR}/boost)
|
||||||
add_subdirectory(boost)
|
add_subdirectory(boost)
|
||||||
|
Loading…
Reference in New Issue
Block a user