Skip to content
Snippets Groups Projects
Commit aaf4b0ea authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

CMake: terminate if a required Boost component is missing

parent 600aa989
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,10 @@ if(WIN32)
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.
if(NOT Boost_FOUND)
message(FATAL_ERROR "Not all required Boost components were found")
endif()
message(STATUS "Found Boost includes at ${Boost_INCLUDE_DIRS}, libraries at ${Boost_LIBRARY_DIRS}")
# === optional packages ===
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment