From e8d096133dbb6c076003c54ac3072eb8942696cc Mon Sep 17 00:00:00 2001 From: Dirk Vanden Boer Date: Tue, 14 Mar 2023 08:36:52 +0100 Subject: [PATCH] Only add the dist dir if geodynamix is the toplevel project --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3154d75..26114f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,4 +201,6 @@ if (GDX_IS_TOPLEVEL AND GDX_INSTALL_DEVELOPMENT_FILES) ) endif () -add_subdirectory(dist) +if (GDX_IS_TOPLEVEL) + add_subdirectory(dist) +endif ()