From e4e1263776844d660c471e3d1203acf54cdc855f Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Fri, 23 Apr 2021 13:21:24 +0300 Subject: [PATCH 2/2] Allow to build python part without build testing enabled Signed-off-by: Alexey Shvetsov --- python_packaging/src/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python_packaging/src/CMakeLists.txt b/python_packaging/src/CMakeLists.txt index c75549fc82..4f983fdd5f 100644 --- a/python_packaging/src/CMakeLists.txt +++ b/python_packaging/src/CMakeLists.txt @@ -252,5 +252,7 @@ endif() # to the `check` target. Normal usage is to first install the Python package, # then run `pytest` on the `tests` directory. Refer to gmxapi package documentation. if(NOT GMXAPI_MASTER_PROJECT) - add_subdirectory(test) + if (BUILD_TESTING) + add_subdirectory(test) + endif() endif() -- 2.31.1