Skip to content

Commit

Permalink
do
Browse files Browse the repository at this point in the history
  • Loading branch information
DNKpp committed Apr 22, 2024
1 parent fe16615 commit 609c793
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ jobs:
run: |
cmake \
-D CMAKE_BUILD_TYPE=${{ matrix.build_mode }} \
-D mimicpp_BUILD_TESTS=yes \
-D CMAKE_VERBOSE_MAKEFILE=yes \
-D CMAKE_CXX_STANDARD=${{ matrix.config.cxx_standard }} \
-D mimicpp_BUILD_TESTS=yes \
-D mimicpp_FORCED_CXX_STANDARD=${{ matrix.config.cxx_standard }}
-B build -S .
cmake --build build -j4
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ else()
set(IS_TOP_LEVEL_PROJECT OFF)
endif()

if (mimicpp_FORCED_CXX_STANDARD)
set(CMAKE_CXX_STANDARD ${mimicpp_FORCED_CXX_STANDARD})
endif()

OPTION(mimicpp_BUILD_TESTS "Determines whether tests shall be built." ${IS_TOP_LEVEL_PROJECT})
if (mimicpp_BUILD_TESTS)
include(CTest)
Expand Down
6 changes: 6 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ target_link_libraries(
trompeloeil::trompeloeil
)

target_compile_features(
mimicpp
INTERFACE
cxx_std_${CMAKE_CXX_STANDARD}
)

catch_discover_tests(mimicpp-tests)

0 comments on commit 609c793

Please sign in to comment.