Commit fa1edda5 authored by Ben Boeckel's avatar Ben Boeckel

vtkPVConfig: remove PARAVIEW_ENABLE_PYTHON

parent 2bf36985
......@@ -79,6 +79,9 @@ if (PARAVIEW_ENABLE_EMBEDDED_DOCUMENTATION)
endif ()
if (PARAVIEW_ENABLE_PYTHON)
target_compile_definitions(paraview
PRIVATE
PARAVIEW_ENABLE_PYTHON)
target_link_libraries(paraview
PRIVATE
ParaView::pvpythonmodules
......
......@@ -377,7 +377,7 @@ void ParaViewMainWindow::updateFontSize()
}
// Console font size
#if defined(PARAVIEW_ENABLE_PYTHON)
#ifdef PARAVIEW_ENABLE_PYTHON
pqPythonShell* shell = qobject_cast<pqPythonShell*>(this->Internals->pythonShellDock->widget());
shell->setFontSize(fontSize);
#endif
......
......@@ -24,6 +24,9 @@ function (paraview_add_executable name)
paraview_plugins)
if (PARAVIEW_ENABLE_PYTHON)
target_compile_definitions("${name}"
PRIVATE
PARAVIEW_ENABLE_PYTHON)
target_link_libraries("${name}"
PRIVATE
ParaView::pvpythonmodules
......
......@@ -18,7 +18,6 @@
#cmakedefine PARAVIEW_USE_QTHELP
#cmakedefine PARAVIEW_ENABLE_PYTHON
#cmakedefine PARAVIEW_FREEZE_PYTHON
#define PARAVIEW_VERSION_MAJOR @PARAVIEW_VERSION_MAJOR@
......
......@@ -33,7 +33,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "vtkPVConfig.h"
#include "pqCoreUtilities.h"
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter
#if VTK_MODULE_ENABLE_ParaView_pqPython
#include "pqCatalystExportStateWizard.h"
#endif
#include <iostream>
......@@ -52,7 +52,7 @@ pqCatalystScriptGeneratorReaction::~pqCatalystScriptGeneratorReaction()
//-----------------------------------------------------------------------------
void pqCatalystScriptGeneratorReaction::onTriggered()
{
#if VTK_MODULE_ENABLE_VTK_PythonInterpreter
#if VTK_MODULE_ENABLE_ParaView_pqPython
pqCatalystExportStateWizard wizard(pqCoreUtilities::mainWidget());
wizard.customize();
wizard.exec();
......
......@@ -252,7 +252,7 @@ set(sources)
set(private_headers
pqSGExportStateWizardInternals.h)
if (TARGET pqPython)
if (TARGET ParaView::pqPython)
# code for generating specialized Python scripts
# from the GUI using trace information
list(APPEND classes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment