Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support conan 2 #249

Merged
merged 10 commits into from
Feb 25, 2024
Prev Previous commit
Next Next commit
Add test
  • Loading branch information
FeignClaims committed Feb 23, 2024
commit b4563533c6c64ad342ad88328dffd5417205330f
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,16 @@ jobs:
cmake: ${{ matrix.cmake }}
ninja: true
vcpkg: true
conan: true
conan: false
FeignClaims marked this conversation as resolved.
Show resolved Hide resolved
cppcheck: true
clangtidy: true
task: true
doxygen: ${{ !contains(matrix.os, 'macos-11') }}

- name: Install conan2
run: |
pip3 install conan==2.1.0

- name: Test
if: ${{ !cancelled() }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion tests/install/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ cmake_minimum_required(VERSION 3.16...3.21)
include(../../src/Index.cmake)

run_vcpkg()
run_conan2()

project(anotherproj VERSION 0.1.0 LANGUAGES CXX C)

# Initialize project_options
project_options(
ENABLE_CACHE
ENABLE_CONAN
# WARNINGS_AS_ERRORS
ENABLE_CPPCHECK
ENABLE_CLANG_TIDY
Expand Down
2 changes: 1 addition & 1 deletion tests/install/conanfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
docopt.cpp/0.6.3

[generators]
cmake_find_package_multi
CMakeDeps
2 changes: 1 addition & 1 deletion tests/myproj/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ endif()
run_vcpkg(VCPKG_URL "https://github.com/microsoft/vcpkg.git" VCPKG_REV
"10e052511428d6b0c7fcc63a139e8024bb146032" ENABLE_VCPKG_UPDATE
)
run_conan2()

project(myproj VERSION 0.2.0 LANGUAGES CXX C)

Expand Down Expand Up @@ -54,7 +55,6 @@ project_options(
PREFIX
"myproj"
ENABLE_CACHE
ENABLE_CONAN
# WARNINGS_AS_ERRORS
ENABLE_CPPCHECK
ENABLE_CLANG_TIDY
Expand Down
2 changes: 1 addition & 1 deletion tests/myproj/conanfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
docopt.cpp/0.6.3

[generators]
cmake_find_package_multi
CMakeDeps