CMake: Only export Tools target if BUILD_TOOLS is on

[skip ci]
This commit is contained in:
rdb 2024-08-12 16:46:47 +02:00
parent 4ca495d828
commit 805f36ff92

View File

@ -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)