From 130aaeaca67bb04e0d0b319eabe959be1dbad9ca Mon Sep 17 00:00:00 2001 From: abn Date: Thu, 4 Feb 2016 11:52:40 +0100 Subject: [PATCH] CMake: simplifying Python detection mechanism. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c9609047..d101fc43e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,9 +109,11 @@ IF(SALOME_BUILD_GUI) ENDIF(SALOME_BUILD_GUI) IF(SALOME_MED_ENABLE_PYTHON) - FIND_PACKAGE(SalomePython) + FIND_PACKAGE(SalomePythonInterp) + FIND_PACKAGE(SalomePythonLibs) FIND_PACKAGE(SalomeSWIG) - SALOME_LOG_OPTIONAL_PACKAGE(Python SALOME_MED_ENABLE_PYTHON) + SALOME_LOG_OPTIONAL_PACKAGE(PythonInterp SALOME_MED_ENABLE_PYTHON) + SALOME_LOG_OPTIONAL_PACKAGE(PythonLibs SALOME_MED_ENABLE_PYTHON) SALOME_LOG_OPTIONAL_PACKAGE(SWIG SALOME_MED_ENABLE_PYTHON) FIND_PACKAGE(SalomeOmniORBPy REQUIRED) # Set the extra flags for SWIG for numpy and scipy -- 2.39.2