From 5cf590e44049669f7e0d66e8ce285b1a0bf00fe9 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Mon, 21 Sep 2020 09:37:31 -0400 Subject: [PATCH] [cmake] Set @PROJECT_NAME@_MODULE_DIR in config.cmake file when PythonSupport enabled --- share/cmake/app4triqs-config.cmake.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/cmake/app4triqs-config.cmake.in b/share/cmake/app4triqs-config.cmake.in index 940e75f6..f5a84276 100644 --- a/share/cmake/app4triqs-config.cmake.in +++ b/share/cmake/app4triqs-config.cmake.in @@ -33,5 +33,8 @@ set(@PROJECT_NAME@_WITH_DOCUMENTATION @Build_Documentation@ CACHE BOOL "Was @PRO # Was the Project built with PythonSupport? set(@PROJECT_NAME@_WITH_PYTHON_SUPPORT @PythonSupport@ CACHE BOOL "Was @PROJECT_NAME@ build with python support?") +if(@PythonSupport@) + set(@PROJECT_NAME@_MODULE_DIR @CMAKE_INSTALL_PREFIX@/@CPP2PY_PYTHON_LIB_DEST_ROOT@ CACHE BOOL "The @PROJECT_NAME@ python module directory") +endif() endif()