standardese: fix build on Linux (#111179)

master
Daniel Nachun 2022-09-19 22:41:40 -07:00 committed by GitHub
parent 46ee9b4b24
commit ad76cdf310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -39,10 +39,12 @@ class Standardese < Formula
# Don't build shared libraries to avoid having to manually install and relocate
# libstandardese, libtiny-process-library, and libcppast. These libraries belong
# to no install targets and are not used elsewhere.
# Disable building test objects because they use an outdated vendored version of catch2.
system "cmake", "-S", ".", "-B", "build",
"-DBUILD_SHARED_LIBS=OFF",
"-DCMARK_LIBRARY=#{Formula["cmark-gfm"].opt_lib/shared_library("libcmark-gfm")}",
"-DCMARK_INCLUDE_DIR=#{Formula["cmark-gfm"].opt_include}",
"-DSTANDARDESE_BUILD_TEST=OFF",
*std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"