Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
b80bc20d
Unverified
Commit
b80bc20d
authored
Nov 09, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use system installed boost headers for regex, when available
parent
3a87eaa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
CMakeLists.txt
+10
-2
No files found.
CMakeLists.txt
View file @
b80bc20d
...
...
@@ -134,7 +134,15 @@ if(GXX_LIBSTDCPP)
message
(
STATUS
"You are probably trying to compile using the g++ standard library which contains a crashing std::regex implementation. Will try to use boost::regex instead"
)
set
(
BOOST_REGEX_STANDALONE ON
)
add_git_submodule
(
regex EXCLUDE_FROM_ALL
)
find_package
(
Boost 1.77 COMPONENTS regex QUIET
)
if
(
Boost_FOUND
)
set
(
BOOST_REGEX_INCLUDE
${
Boost_INCLUDE_DIRS
}
)
else
()
add_git_submodule
(
regex EXCLUDE_FROM_ALL
)
set
(
BOOST_REGEX_INCLUDE regex/include
)
endif
()
endif
()
endif
()
...
...
@@ -260,7 +268,7 @@ get_target_property(GXRIO_INCLUDE_DIR gxrio::gxrio INTERFACE_INCLUDE_DIRECTORIES
target_include_directories
(
cifpp PRIVATE
${
GXRIO_INCLUDE_DIR
}
)
if
(
BOOST_REGEX_STANDALONE
)
target_include_directories
(
cifpp PRIVATE
regex/include
)
target_include_directories
(
cifpp PRIVATE
${
BOOST_REGEX_INCLUDE
}
)
endif
()
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"AppleClang"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment