From 5c2761f9cebd17a365812286d3dbcfa5101c540b Mon Sep 17 00:00:00 2001
From: Chuck Atkins <chuck.atkins@kitware.com>
Date: Tue, 27 Jun 2017 17:16:51 -0400
Subject: [PATCH] Always check for python dev libs when ADIOS2_HAVE_PYTHON is
 TRUE

Fixes #193
---
 bindings/python/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
index 93fd50a56..854a2c628 100644
--- a/bindings/python/CMakeLists.txt
+++ b/bindings/python/CMakeLists.txt
@@ -2,6 +2,8 @@ if(NOT BUILD_SHARED_LIBS)
   message(ERROR "Python bindings are only supported for shared libraries")
 endif()
 
+find_package(PythonLibsNew REQUIRED)
+
 pybind11_add_module(adios2py MODULE
   ADIOSPy.h
   ADIOSPy.cpp
-- 
GitLab