mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
std:regex cleanup for cmake
Do not use system boost regex lib when not needed.
This commit is contained in:
parent
ad6c03fe26
commit
a15468e260
@ -630,7 +630,11 @@ find_package(ZLIB REQUIRED)
|
||||
|
||||
if(LYX_EXTERNAL_BOOST)
|
||||
message(STATUS "Searching for boost")
|
||||
find_package(Boost COMPONENTS signals regex) #TODO could REQUIRED be used
|
||||
if(LYX_USE_STD_REGEX)
|
||||
find_package(Boost COMPONENTS signals)
|
||||
else()
|
||||
find_package(Boost COMPONENTS signals regex)
|
||||
endif()
|
||||
if(Boost_FOUND)
|
||||
message(STATUS "Boost found")
|
||||
message(STATUS "Boost-libs = ${Boost_LIBRARIES}")
|
||||
|
Loading…
Reference in New Issue
Block a user