Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
d5d0bb6c
Commit
d5d0bb6c
authored
4 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
CMake now requires Boost 1.65.0
parent
ad2320a1
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
cmake/bornagain/modules/SearchInstalledSoftware.cmake
+8
-7
8 additions, 7 deletions
cmake/bornagain/modules/SearchInstalledSoftware.cmake
with
8 additions
and
7 deletions
cmake/bornagain/modules/SearchInstalledSoftware.cmake
+
8
−
7
View file @
d5d0bb6c
...
...
@@ -17,16 +17,17 @@ set(Boost_USE_STATIC_LIBS OFF)
set
(
Boost_USE_MULTITHREADED ON
)
set
(
Boost_USE_STATIC_RUNTIME OFF
)
add_definitions
(
-DBOOST_ALL_DYN_LINK
)
# line is needed for MSVC
#add_definitions(-DBOOST_LIB_DIAGNOSTIC) # shows during compilation auto-linked libraries
set
(
boost_libraries_required program_options iostreams regex system filesystem
)
# Boost component libraries (do not list headers here)
set
(
boost_libraries_required filesystem iostreams program_options
)
if
(
WIN32
)
set
(
boost_libraries_required
${
boost_libraries_required
}
zlib bzip2
)
# system seems to be indirectly required
list
(
APPEND boost_libraries_required bzip2 system zlib
)
endif
()
find_package
(
Boost 1.48.0 COMPONENTS
${
boost_libraries_required
}
REQUIRED
)
# In spite of the "REQUIRED" flag, FindBoost will not terminate if some components are missing.
find_package
(
Boost 1.65.1 COMPONENTS
${
boost_libraries_required
}
REQUIRED
)
# In spite of the "REQUIRED" flag, FindBoost will not terminate if some components are missing
if
(
NOT Boost_FOUND
)
message
(
FATAL_ERROR
"Not all required Boost components were found"
)
message
(
FATAL_ERROR
"Not all required Boost component
librarie
s were found"
)
endif
()
message
(
STATUS
"Found Boost includes at
${
Boost_INCLUDE_DIRS
}
, libraries at
${
Boost_LIBRARY_DIRS
}
"
)
...
...
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