CMake: fix broken logic around Python

This commit is contained in:
Adriaan de Groot 2018-01-15 22:27:56 +01:00
parent 83eaaf04aa
commit 66c03b4055

View File

@ -180,10 +180,12 @@ if ( PYTHONLIBS_FOUND )
) )
endif() endif()
if( PYTHONLIBS_NOTFOUND OR NOT CALAMARES_BOOST_PYTHON3_FOUND ) if( NOT PYTHONLIBS_FOUND OR NOT CALAMARES_BOOST_PYTHON3_FOUND )
message(STATUS "Disabling Boost::Python modules")
set( WITH_PYTHON OFF ) set( WITH_PYTHON OFF )
endif() endif()
if( PYTHONLIBS_NOTFOUND OR NOT PYTHONQT_FOUND ) if( NOT PYTHONLIBS_FOUND OR NOT PYTHONQT_FOUND )
message(STATUS "Disabling PythonQt modules")
set( WITH_PYTHONQT OFF ) set( WITH_PYTHONQT OFF )
endif() endif()