diff --git a/CMakeLists.txt b/CMakeLists.txt index 915c1f322..4b8e40591 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,7 @@ if(NOT CMAKE_VERSION VERSION_LESS 3.19) # Using target_sources with PRIVATE or PUBLIC on INTERFACE targets requires 3.19 - file(GLOB_RECURSE headers CONFIGURE_DEPENDS include/*.hpp) + file(GLOB_RECURSE headers ${BOOST_CONFIGURE_DEPENDS} include/*.hpp) target_sources(boost_unordered PRIVATE ${headers}) unset(headers)