Skip to content

Commit

Permalink
Do not build test if CMake < 3.22 (#204)
Browse files Browse the repository at this point in the history
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz authored and JesusPoderoso committed Jul 1, 2024
1 parent d3dd1d1 commit 6561401
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ enable_testing()
include(CTest)

if (BUILD_TESTING)
add_subdirectory(test)
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.22)
add_subdirectory(test)
else()
message(INFO "Tests are disabled because the version of CMake is less than 3.22")
endif()
endif()

###############################################################################
Expand Down

0 comments on commit 6561401

Please sign in to comment.