From 0c2e333750f4d2b131d0e5acd171c20bfa59f4e6 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 10 Jun 2024 17:47:30 -0400 Subject: [PATCH] fix(fmt) --- projects/fmt.dev/package.yml | 39 +++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/projects/fmt.dev/package.yml b/projects/fmt.dev/package.yml index 31e4fe71..22ff4637 100644 --- a/projects/fmt.dev/package.yml +++ b/projects/fmt.dev/package.yml @@ -8,10 +8,13 @@ versions: build: dependencies: cmake.org: ^3 - working-directory: build - script: | - cmake .. $ARGS - make --jobs {{ hw.concurrency }} install + script: + - cmake . -B build $ARGS -DBUILD_SHARED_LIBS=ON + - run: make --jobs {{ hw.concurrency }} install + working-directory: build + - cmake . -B build-static $ARGS -DBUILD_SHARED_LIBS=OFF + - run: make --jobs {{ hw.concurrency }} install + working-directory: build-static env: ARGS: - -DCMAKE_INSTALL_PREFIX="{{prefix}}" @@ -23,17 +26,17 @@ build: - -DCMAKE_EXE_LINKER_FLAGS=-pie test: - fixture: | - #include - #include - #include - int main() - { - std::string str = fmt::format("The answer is {}", 42); - std::cout << str; - return 0; - } - script: | - mv $FIXTURE fixture.cc - c++ fixture.cc -lfmt -std=c++11 - test "$(./a.out)" = "The answer is 42" + - run: c++ $FIXTURE -lfmt -std=c++11 + fixture: + extname: cc + content: | + #include + #include + #include + int main() + { + std::string str = fmt::format("The answer is {}", 42); + std::cout << str; + return 0; + } + - test "$(./a.out)" = "The answer is 42"