Skip to content
Snippets Groups Projects
Commit 34026eb8 authored by Thomas Jürges's avatar Thomas Jürges
Browse files

Task SW-417: Without the REQUIRED keyword find_python_module does not fail

When find_python_module is used in one of our Cmake files and the Python module
that is listed there is missing on the build system the cmake process does not
fail.  Instead it prints out this funny message:

-- Could NOT find PYTHON_INOTIFY (missing:  PYTHON_INOTIFY)
CMake Warning at CMake/FindPythonModule.cmake:102 (message):
  Removed REQUIRED option while looking for python module 'inotify' because
  BUILD_DOCUMENTATION=OFF.  This allows cmake to continue configuring so you
  could make the doc, but building the code might not be possible.
Call Stack (most recent call first):
  LCU/Maintenance/MDB_tools/CMakeLists.txt:13 (find_python_module)

In my opinion this should rathet fail unless(!) BUILD_DOCUMENTATION=ON.
parent c8914ac2
No related branches found
No related tags found
2 merge requests!89Monitoring maintenance Epic branch merge,!1Resolve OSB-13 "Monitoringmaintenance "
......@@ -8,9 +8,9 @@ include(PythonInstall)
include(FindPythonModule)
#Required packages
find_python_module(beautifultable)
find_python_module(blessings)
find_python_module(watchdog)
find_python_module(beautifultable REQUIRED)
find_python_module(blessings REQUIRED)
find_python_module(inotify REQUIRED)
set(_py_files
cli/__init__.py
......
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