Skip to content

Cmake fails with" -D CMAKE_DISABLE_FIND_PACKAGE_Python3=ON"

-- using C macro definitions from /home/mblatt/src/dune/opm-master/dune-common/doc/doxygen/doxygen-macros for Doxygen
-- Skipping building CMake API documentation (Python interpreter was not found!)
CMake Error at cmake/modules/DunePythonTestCommand.cmake:92 (add_dependencies):
  Cannot add target-level dependencies to non-existent target "test_python".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.
Call Stack (most recent call first):
  dune/python/test/CMakeLists.txt:1 (dune_python_add_test)


CMake Error at python/dune/common/CMakeLists.txt:1 (add_python_targets):
  Unknown CMake command "add_python_targets".


-- Configuring incomplete, errors occurred!
See also "/home/mblatt/src/dune/opm-master/dune-common/opts-opm-no-python.cmake/CMakeFiles/CMakeOutput.log".
See also "/home/mblatt/src/dune/opm-master/dune-common/opts-opm-no-python.cmake/CMakeFiles/CMakeError.log".