Skip to content

Commit

Permalink
Run tests only if current project or explicitly specified.
Browse files Browse the repository at this point in the history
Signed-off-by: Gianfranco Berardi <[email protected]>
  • Loading branch information
gberardi-pillar committed Jan 5, 2024
1 parent 56c4649 commit cbdaf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (EVSE_SECURITY_INSTALL)
)
endif()

if(BUILD_TESTING)
if((CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME OR ${PROJECT_NAME}_BUILD_TESTING) AND BUILD_TESTING)
include(CTest)
add_subdirectory(tests)
set(CMAKE_BUILD_TYPE Debug)
Expand Down

0 comments on commit cbdaf38

Please sign in to comment.