From 474b62b2653c340abea8a7e54df234dd20814abe Mon Sep 17 00:00:00 2001 From: ZhuLingQing Date: Sat, 16 Mar 2024 11:56:15 +0800 Subject: [PATCH] fix cmake issue --- CMakeLists.txt | 2 +- tests/CMakeLists.txt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69b31d2..03cc6e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.26) +cmake_minimum_required(VERSION 3.16) add_subdirectory("protothreads") diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3b611e4..42213e0 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -10,6 +10,8 @@ target_link_libraries(${TEST} protothreads ) -target_include_directories(${TEST} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} ) +include_directories(${PROJECT_SOURCE_DIR} ${OS_LIB_DIR}) + +target_include_directories(${TEST} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} ${OS_LIB_DIR}) add_test( NAME ${TEST} COMMAND ./${TEST})