Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lib4neuro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MolDyn
lib4neuro
Commits
3cc31870
Commit
3cc31870
authored
6 years ago
by
Martin Beseda
Browse files
Options
Downloads
Patches
Plain Diff
Testing own FindBoost.cmake
parent
66bd8f4f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FindBoost.cmake
+22
-4
22 additions, 4 deletions
FindBoost.cmake
with
22 additions
and
4 deletions
FindBoost.cmake
+
22
−
4
View file @
3cc31870
...
...
@@ -45,16 +45,28 @@ find_path(
$ENV{BOOST_INCLUDEDIR}
${
CMAKE_CURRENT_LIST_DIR
}
/external_dependencies/boost
PATHS
/usr/include
/home/boost
PATH_SUFFIXES
boost
include
)
# Add path without "boost" include sub-directory to include path,
# as Boost headers are supposed to be included like
# #include<boost/...> according to the documentation
set
(
TMP
""
)
if
(
WIN32
)
string
(
REPLACE
"
\\
boost
\\
boost"
"
\\
boost"
TMP
${
Boost_INCLUDE_DIRS
}
)
list
(
APPEND Boost_INCLUDE_DIRS
${
TMP
}
)
else
()
string
(
REPLACE
"/boost/boost"
"/boost"
TMP
${
Boost_INCLUDE_DIRS
}
)
list
(
APPEND Boost_INCLUDE_DIRS
${
TMP
}
)
endif
()
message
(
"Boost_INCLUDE_DIRS:
${
Boost_INCLUDE_DIRS
}
"
)
if
(
NOT Boost_INCLUDE_DIRS
)
message
(
FATAL_ERROR
"Boost include directory was not found! Please, set variable BOOST_INCLUDEDIR to the correct path."
)
endif
()
...
...
@@ -95,17 +107,23 @@ find_path(
${
BOOST_LIBRARYDIR
}
$ENV{BOOST_LIBRARYDIR}
${
CMAKE_CURRENT_LIST_DIR
}
/external_dependencies/boost
${
CMAKE_CURRENT_LIST_DIR
}
/external_dependencies/boost/stage
${
CMAKE_CURRENT_LIST_DIR
}
/external_dependencies/boost/stage/lib
PATHS
/usr/lib/boost
/usr/lib/x86_64-linux-gnu
PATH_SUFFIXES
stage/lib
lib
)
# Construct list of libraries' names and make them
if
(
NOT Boost_LIBRARY_DIRS
)
message
(
FATAL_ERROR
"Boost library directory was not found! Please, set variable BOOST_LIBRARYDIR to the correct path."
)
endif
()
# Construct list of libraries' names and make them
# targets, so they may be linked
set
(
Boost_LIBRARIES
""
)
foreach
(
LIBNAME
${
REQUESTED_BOOST_LIBS
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment