From 656b4e0733f13420ed4ecb9489d4cbe7ba845e2d Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Thu, 18 Dec 2025 18:19:00 +0000 Subject: [PATCH] - cmake file only includes tests folder when it exists --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dccccb35..a569da31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -238,9 +238,9 @@ add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/src) # Build tests if requested option(BUILD_TESTS "Build unit tests" ON) -if(BUILD_TESTS) +if(BUILD_TESTS AND EXISTS ${CMAKE_CURRENT_LIST_DIR}/tests) add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tests) -endif(BUILD_TESTS) +endif(BUILD_TESTS AND EXISTS ${CMAKE_CURRENT_LIST_DIR}/tests) install(FILES ${API_HEADERS} DESTINATION include/libiec61850 COMPONENT Development)