Skip to content
Snippets Groups Projects
Commit 806d4f18 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[CMake][release] Do not error out if suggested module not found.

This fixes FS#1422.
parent 3cb196db
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,8 @@ macro(find_dune_package module)
# use pkg-config
find_package(PkgConfig REQUIRED)
pkg_check_modules (${module} ${module})
if(NOT ${module}_FOUND)
# error out if required module is not found
if((NOT ${module}_FOUND) AND (${ARGV} MATCHES ".*REQUIRED"))
message(FATAL_ERROR "Could not find module ${module}.")
endif()
# compute the path to the libraries
......
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