1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

only build unit tests of common if project is toplevel project

This commit is contained in:
Sonja Happ 2019-10-17 10:42:53 +02:00 committed by Steffen Vogel
parent 5f9009da13
commit f9a331a935

View file

@ -63,7 +63,7 @@ pkg_check_modules(JANSSON IMPORTED_TARGET REQUIRED jansson>=2.7)
pkg_check_modules(LIBCONFIG IMPORTED_TARGET libconfig>=1.4.9)
add_subdirectory(lib)
if(CRITERION_FOUND)
if(CRITERION_FOUND AND TOPLEVEL_PROJECT)
add_subdirectory(tests)
endif()