From 805f36ff929d29d5b84d32f2cd621945cc8c4afa Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 12 Aug 2024 16:46:47 +0200 Subject: [PATCH] CMake: Only export Tools target if BUILD_TOOLS is on [skip ci] --- pandatool/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandatool/CMakeLists.txt b/pandatool/CMakeLists.txt index 4af516d7a4..8db045f4d5 100644 --- a/pandatool/CMakeLists.txt +++ b/pandatool/CMakeLists.txt @@ -47,5 +47,7 @@ add_subdirectory(src/xfile) add_subdirectory(src/xfileegg) add_subdirectory(src/xfileprogs) -export_targets(Tools) +if(BUILD_TOOLS) + export_targets(Tools) +endif() export_targets(ToolsDevel NAMESPACE "Panda3D::Tools::" COMPONENT ToolsDevel)