From df5ae70b71c664baeb61a32db3e65f3c835f52cc Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 17 Feb 2023 06:16:02 +0200 Subject: [PATCH] Update test/cmake_subdir_test --- test/cmake_subdir_test/CMakeLists.txt | 42 +++++++++++++-------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/test/cmake_subdir_test/CMakeLists.txt b/test/cmake_subdir_test/CMakeLists.txt index c55ed0e..a6d3f7e 100644 --- a/test/cmake_subdir_test/CMakeLists.txt +++ b/test/cmake_subdir_test/CMakeLists.txt @@ -2,39 +2,39 @@ # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.5...3.20) project(cmake_subdir_test LANGUAGES CXX) add_subdirectory(../.. boostorg/function) -# boost_add_subdir +set(deps -function(boost_add_subdir name) +# Primary dependencies - add_subdirectory(../../../${name} boostorg/${name}) +assert +bind +config +core +preprocessor +throw_exception +type_index +type_traits +typeof -endfunction() +# Secondary dependencies -# primary dependencies +static_assert +container_hash +describe +mp11 +) -boost_add_subdir(assert) -boost_add_subdir(bind) -boost_add_subdir(config) -boost_add_subdir(core) -boost_add_subdir(integer) -boost_add_subdir(preprocessor) -boost_add_subdir(throw_exception) -boost_add_subdir(type_index) -boost_add_subdir(type_traits) -boost_add_subdir(typeof) +foreach(dep IN LISTS deps) -# secondary dependencies + add_subdirectory(../../../${dep} boostorg/${dep}) -boost_add_subdir(static_assert) -boost_add_subdir(container_hash) -boost_add_subdir(describe) -boost_add_subdir(mp11) +endforeach() # --target check