cmake: BUILD_DEPS does not include a BUILD_SWIG option #4298
Labels
Build: CMake
CMake based build issue
Feature Request
Missing Feature/Wrapper
Lang: Python
Python wrapper issue
What language and solver does this apply to?
CMake build
Describe the problem you are trying to solve.
I'm building OR-Tools Python package from source on an Ubuntu machine:
I don't have the rights to install packages from apt, so I build the dependencies from source.
Everything is ok when I build the C++ library without Python, but when I build the Python package it fails with
Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
. Apparently, BUILD_DEPS does not include SWIG.Describe the solution you'd like
Fetch and build SWIG from source when both
BUILD_DEPS
andBUILD_PYTHON
are on.The text was updated successfully, but these errors were encountered: