Skip to content

Commit 4d7bdd1

Browse files
committed
Explicitly build 'define_catch_main.cpp' with c++17.
1 parent bcabee7 commit 4d7bdd1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.8)
22

33
option(PIPEABLE_BUILD_TESTS "Build tests" OFF)
44

5-
project(pipeable)
5+
project(pipeable CXX)
66

77
add_library( ${PROJECT_NAME} INTERFACE)
88
add_library(fho::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

catch2/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ add_library(catch2 define_main.cpp)
44
target_include_directories( catch2
55
PRIVATE ./catch2
66
INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
7-
)
7+
)
8+
target_compile_features(catch2 PUBLIC cxx_std_17)

0 commit comments

Comments
 (0)