Skip to content

Commit 8020970

Browse files
committed
Update build
1 parent 919a591 commit 8020970

12 files changed

+16
-23
lines changed

.github/workflows/build-linux-clang.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

1414
- name: "Setup required packages"
1515
run: sudo apt-get install -y binutils-dev libssl-dev uuid-dev

.github/workflows/build-linux-gcc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

1414
- name: "Setup required packages"
1515
run: sudo apt-get install -y binutils-dev libssl-dev uuid-dev

.github/workflows/build-macos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: macos-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

1414
- name: "Setup python"
1515
uses: actions/setup-python@v4

.github/workflows/build-windows-cygwin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
shell: cmd
1717
run: git config --global core.autocrlf input
1818

19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020

2121
- name: "Setup Cygwin"
2222
uses: cygwin/cygwin-install-action@v2

.github/workflows/build-windows-mingw.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: windows-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

1414
- name: "Setup cmake"
1515
run: cmake --version

.github/workflows/build-windows-msys2.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
run:
1313
shell: msys2 {0}
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616

1717
- name: "Setup MSYS2"
1818
uses: msys2/setup-msys2@v2

.github/workflows/build-windows-vs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: windows-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

1414
- name: "Setup Visual Studio"
1515
uses: egor-tensin/vs-shell@v2

.github/workflows/doxygen.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
git config --global user.name "${{ github.actor }}"
1515
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
1616
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818

1919
- name: "Setup cmake"
2020
run: cmake --version

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ if(NOT CPPBENCHMARK_MODULE)
7272
file(GLOB TESTS_SOURCE_FILES "tests/*.cpp")
7373
add_executable(cppbenchmark-tests ${TESTS_HEADER_FILES} ${TESTS_INLINE_FILES} ${TESTS_SOURCE_FILES})
7474
set_target_properties(cppbenchmark-tests PROPERTIES COMPILE_FLAGS "${PEDANTIC_COMPILE_FLAGS}" FOLDER "tests")
75-
target_include_directories(cppbenchmark-tests PRIVATE Catch2::Catch2)
76-
target_link_libraries(cppbenchmark-tests ${LINKLIBS} Catch2::Catch2WithMain)
75+
target_include_directories(cppbenchmark-tests PRIVATE Catch2)
76+
target_link_libraries(cppbenchmark-tests ${LINKLIBS} Catch2)
7777
list(APPEND INSTALL_TARGETS cppbenchmark-tests)
7878
list(APPEND INSTALL_TARGETS_PDB cppbenchmark-tests)
7979

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016-2023 Ivan Shynkarenka
3+
Copyright (c) 2016-2024 Ivan Shynkarenka
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

modules/Catch2.cmake

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
if(NOT TARGET Catch2)
22

3-
# Restore origin compile flags
4-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS_ORIGIN}")
5-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_ORIGIN}")
6-
7-
# Module subdirectory
8-
add_subdirectory("Catch2")
3+
# Module library
4+
file(GLOB SOURCE_FILES "Catch2/extras/catch_amalgamated.cpp")
5+
add_library(Catch2 ${SOURCE_FILES})
6+
target_include_directories(Catch2 PUBLIC "Catch2/extras")
97

108
# Module folder
119
set_target_properties(Catch2 PROPERTIES FOLDER "modules/Catch2")
12-
set_target_properties(Catch2WithMain PROPERTIES FOLDER "modules/Catch2")
13-
14-
# Restore custom compile flags
15-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS_CUSTOM}")
16-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_CUSTOM}")
1710

1811
endif()

tests/test.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// Created by Ivan Shynkarenka on 09.07.2015
33
//
44

5-
#include <catch2/catch_test_macros.hpp>
5+
#include <catch_amalgamated.hpp>

0 commit comments

Comments
 (0)