From e5e649ce9c816dae76b12b9df614d0f63d6920a7 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Thu, 15 Aug 2024 14:53:58 +0200 Subject: [PATCH] [py] ogs.callbacks-module is only used in wheels. --- Applications/Python/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Applications/Python/CMakeLists.txt b/Applications/Python/CMakeLists.txt index 6d0f1171608..b15a9c06c75 100644 --- a/Applications/Python/CMakeLists.txt +++ b/Applications/Python/CMakeLists.txt @@ -11,12 +11,14 @@ endif() add_subdirectory(ogs) add_subdirectory(ogs.simulator) add_subdirectory(ogs.mesh) -add_subdirectory(ogs.callbacks) +if(OGS_BUILD_WHEEL) + add_subdirectory(ogs.callbacks) +endif() if(OGS_USE_PIP) set_target_properties( - simulator mesh callbacks PROPERTIES LIBRARY_OUTPUT_DIRECTORY - ${_py_build_location} + simulator mesh PROPERTIES LIBRARY_OUTPUT_DIRECTORY + ${_py_build_location} ) file( COPY ogs/. -- GitLab