Skip to content

Commit

Permalink
tooling: Add cloe-normal Conan profile
Browse files Browse the repository at this point in the history
- Set default Conan build type to Debug in `setup-conan` target
  • Loading branch information
cassava committed Dec 4, 2023
1 parent 31dbc3f commit a9c7c65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile.setup
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,16 @@ 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; \
fi
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}"; \
Expand Down
5 changes: 5 additions & 0 deletions dist/conan/cloe-normal.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include(default)

[settings]
build_type=Release
*/*@cloe/develop:build_type=Debug

0 comments on commit a9c7c65

Please sign in to comment.