From 9ac79595315b7753d55263c4f347321b1521807d Mon Sep 17 00:00:00 2001 From: Mathieu Westphal <mathieu.westphal@kitware.com> Date: Fri, 28 Feb 2025 10:24:28 +0100 Subject: [PATCH] CMake: Add control for disabling cdi unknown sources --- src/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6b212b8d1..26ea963f1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -190,11 +190,17 @@ list( APPEND cdi_unknown resource_unpack.h ) +option(CDI_BUILD_UNKNOWN "Build unknown sources in libcdi" ON) +mark_as_advanced(CDI_BUILD_UNKNOWN) +if (CDI_BUILD_UNKNOWN) + list(APPEND cdi_src_files ${cdi_unknown}) +endif () + # Support exporting all symbolds on Windows set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) add_library(cdilib - ${cdi_src_files} ${cdi_unknown} + ${cdi_src_files} # INSTALL_HEADERS_LIST cdi.h ) -- GitLab