Skip to content

Commit 2aaf1e9

Browse files
authored
Modified version for cmake 3.16 (#6)
* Modified version for cmake 3.16 * Fix the configuration and removes the extra file
1 parent fdd1660 commit 2aaf1e9

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.22)
1+
cmake_minimum_required(VERSION 3.16)
22

33

44
set(CMAKE_C_STANDARD 11)
@@ -25,7 +25,4 @@ endif()
2525
include(CTest)
2626

2727
add_subdirectory(src)
28-
29-
if (PROJECT_IS_TOP_LEVEL)
30-
add_subdirectory(test)
31-
endif()
28+
add_subdirectory(test)

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.22)
1+
cmake_minimum_required(VERSION 3.16)
22

33
include(CheckSymbolExists)
44

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.22)
1+
cmake_minimum_required(VERSION 3.16)
22

33
include(CheckSymbolExists)
44

0 commit comments

Comments
 (0)