From a9c7c652a86e5e7a0b39499b0b4035c4fe25634d Mon Sep 17 00:00:00 2001 From: Benjamin Morgan Date: Mon, 4 Dec 2023 15:43:37 +0100 Subject: [PATCH] tooling: Add cloe-normal Conan profile - Set default Conan build type to Debug in `setup-conan` target --- Makefile.setup | 6 +++--- dist/conan/cloe-normal.profile | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 dist/conan/cloe-normal.profile diff --git a/Makefile.setup b/Makefile.setup index f99136fa8..e31c2a5f5 100644 --- a/Makefile.setup +++ b/Makefile.setup @@ -71,7 +71,7 @@ setup-conan: if [ ! -f ${CONAN_PROFILE_PATH} ]; then \ conan config init; \ conan profile update settings.compiler.libcxx=libstdc++11 ${CONAN_PROFILE}; \ - conan profile update settings.build_type=RelWithDebInfo ${CONAN_PROFILE}; \ + conan profile update settings.build_type=Debug ${CONAN_PROFILE}; \ fi if ! conan config get general.default_build_profile >/dev/null 2>&1; then \ conan config set general.default_build_profile=default; \ @@ -79,8 +79,8 @@ setup-conan: if ! conan config get general.revisions_enabled >/dev/null 2>&1; then \ conan config set general.revisions_enabled=True; \ fi - # Install cloe-debug and cloe-release profiles. - for profile in "${PROJECT_ROOT}"/dist/conan/*; do \ + # Install cloe-{debug,normal,release} profiles. + for profile in "${PROJECT_ROOT}"/dist/conan/*.profile; do \ export profile_name=$$(basename -s .profile $${profile}); \ install -m 644 "$${profile}" "${CONAN_DIR}/profiles/$${profile_name}"; \ sed -r -i "s/default/${CONAN_PROFILE}/" "${CONAN_DIR}/profiles/$${profile_name}"; \ diff --git a/dist/conan/cloe-normal.profile b/dist/conan/cloe-normal.profile new file mode 100644 index 000000000..68d4439c2 --- /dev/null +++ b/dist/conan/cloe-normal.profile @@ -0,0 +1,5 @@ +include(default) + +[settings] +build_type=Release +*/*@cloe/develop:build_type=Debug