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 Mar 25, 2024
1 parent d3dd1d1 commit 5a1dd45
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 5a1dd45

Please sign in to comment.