ufc needs Python 2, but Python 3 may be found (with fix)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UFC |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Hi,
I tried to compile ufc on another machine today and got the error messages
=======
[...]
[ 50%] Building CXX object CMakeFiles/
/usr/bin/c++ -D_ufc_EXPORTS -O3 -DNDEBUG -fPIC -I/homes/
/homes/
/homes/
/homes/
=======
This is because CMake spit out the Python3.2 include folder which doesn't have those symbols.
To make sure that Python 2 is found, add
set(PythonInter
right before
find_package(
in ufc's main CMakeLists.txt.
--Nico
Changed in ufc: | |
status: | New → Fix Committed |
Also, if UFC_ENABLE_PYTHON, one requires PythonLibs. You may want to replace
# Find Python library corresponding to Python interpreter PythonLibs ${PYTHON_ VERSION_ STRING} EXACT QUIET)
find_package(
by
# Find Python library corresponding to Python interpreter package( PythonLibs ${PYTHON_ VERSION_ STRING} EXACT QUIET REQUIRED) package( PythonLibs ${PYTHON_ VERSION_ STRING} EXACT QUIET)
if (UFC_ENABLE_PYTHON)
find_
else()
find_
endif()