From d81367053fb1e9552e5c7d355c93b8b6926def6d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 19 Oct 2025 11:50:12 +0300 Subject: [PATCH] Rename `boost_assert_HEADERS` variable to `headers`, to facilitate copy-paste into other libraries --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a45c60..79fa807 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,10 +23,10 @@ if(CMAKE_VERSION VERSION_GREATER 3.18) # Using target_sources with PRIVATE or PUBLIC on INTERFACE targets requires 3.19 - file(GLOB_RECURSE boost_assert_HEADERS CONFIGURE_DEPENDS include/*.hpp) - target_sources(boost_assert PRIVATE ${boost_assert_HEADERS}) - source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_assert_HEADERS} PREFIX "include") - unset(boost_assert_HEADERS) + file(GLOB_RECURSE headers CONFIGURE_DEPENDS include/*.hpp) + target_sources(boost_assert PRIVATE ${headers}) + source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${headers} PREFIX "include") + unset(headers) if(MSVC)