matchit.cpp icon indicating copy to clipboard operation
matchit.cpp copied to clipboard

Add the library to conan

Open sanblch opened this issue 2 years ago • 4 comments

As a conan user I wanted to have this library awailable via conan-center-index. So I made a PR in there.

sanblch avatar Aug 31 '22 09:08 sanblch

@sanblch Thanks for adding this! Will update the installation part after the PR gets committed.

BowenFu avatar Aug 31 '22 12:08 BowenFu

Using project_options will do this, and other things, easily.

Something like this will work:


FetchContent_Declare(
  _project_options 
  URL "https://github.com/aminya/project_options/archive/refs/tags/v0.24.0.zip"
  DOWNLOAD_EXTRACT_TIMESTAMP
)

FetchContent_MakeAvailable(_project_options)

include("${_project_options_SOURCE_DIR}/Index.cmake")
include("${_project_options_SOURCE_DIR}/src/DynamicProjectOptions.cmake")

# run_vcpkg() should be called before defining project()
run_vcpkg()

# define things you want for your library here, such as Conan support, sanitizer builds, or packaging. 
project_options(
  ENABLE_CONAN
  # ...
)

e-dant avatar Sep 05 '22 17:09 e-dant

Oops -- I misread. This won't put it in the conan center.

Still might be worthwhile for an easier CMake experience, though.

e-dant avatar Sep 05 '22 17:09 e-dant

@sanblch @e-dant Thank you both for supporting this project.

@sanblch should we close this issue since the task is done?

BowenFu avatar Sep 10 '22 03:09 BowenFu