Skip to content

Commit

Permalink
cmake: Avoid adding test targets if not top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed Jun 11, 2024
1 parent ef594d1 commit cc084c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ enable_testing()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

add_subdirectory(src)
add_subdirectory(tests)

if(rtcheck_IS_TOP_LEVEL)
add_subdirectory(tests)
endif()

0 comments on commit cc084c7

Please sign in to comment.