Skip to content

Commit ecab1cc

Browse files
committed
specify standard C++ in CMake files
1 parent 25895df commit ecab1cc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

examples/matrix/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ cmake_minimum_required(VERSION 3.10)
22
Include(FetchContent)
33

44
# set the project name
5-
project(NoarrStructuresMatrixExample VERSION 0.1)
5+
project(NoarrStructuresMatrixExample VERSION 0.1 LANGUAGES CXX)
66

77
# specify the C++ standard
88
set(CMAKE_CXX_STANDARD 20)
99
set(CMAKE_CXX_STANDARD_REQUIRED True)
10+
set(CMAKE_CXX_EXTENSIONS OFF)
1011

1112
# setup the test runner executable
1213
add_executable(matrix matrix.cpp)

tests/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
cmake_minimum_required(VERSION 3.10)
22

33
# set the project name
4-
project(NoarrTests VERSION 0.20.0)
4+
project(
5+
NoarrTests VERSION 0.20.0
6+
DESCRIPTION "Tests for the Noarr library"
7+
LANGUAGES CXX
8+
)
59

610
include(CTest)
711
enable_testing()

0 commit comments

Comments
 (0)