Skip to content
Snippets Groups Projects
Commit b4576042 authored by Christoph Grüninger's avatar Christoph Grüninger Committed by Markus Blatt
Browse files

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


This fixes FS#1422.
(cherry picked from commit 806d4f18)

Signed-off-by: default avatarMarkus Blatt <markus@dr-blatt.de>
parent faa5fe18
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,8 @@ macro(find_dune_package module) ...@@ -102,7 +102,8 @@ macro(find_dune_package module)
# use pkg-config # use pkg-config
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)
pkg_check_modules (${module} ${module}) 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}.") message(FATAL_ERROR "Could not find module ${module}.")
endif() endif()
# compute the path to the libraries # 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