From 3fa4c59fa93c0e87c6f533c5d94bb49e7fef0d11 Mon Sep 17 00:00:00 2001 From: Marko Petric <marko.petric@cern.ch> Date: Tue, 24 Sep 2019 16:44:29 +0200 Subject: [PATCH] Move find python to main cmake file --- CMakeLists.txt | 3 +++ DDG4/CMakeLists.txt | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1827a9398..a48748fb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,6 +98,9 @@ dd4hep_configure_output( OUTPUT "${PROJECT_BINARY_DIR}" INSTALL "${CMAKE_INSTALL # Resolve dependencies # ######################## +# Configure Python +find_package(Python COMPONENTS Development) + # Configure ROOT find_package (ROOT 6.08 REQUIRED) DD4HEP_SETUP_ROOT_TARGETS() diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt index d7a97e415..68b710442 100644 --- a/DDG4/CMakeLists.txt +++ b/DDG4/CMakeLists.txt @@ -50,7 +50,6 @@ dd4hep_add_plugin(DDG4Plugins #--------------------------- Plugin library for the simulation framework --------- -find_package(Python COMPONENTS Development) if(TARGET Python::Python) dd4hep_print("|++> Python found, creating DDG4Python Dictionary") dd4hep_add_dictionary(G__DDG4Python -- GitLab